This error in Visual Studio has some complicated solutions online, but a simple way can fix the problem. Only the package causing the problem needs to be deleted.
- Login to the user account causing the problem
- Open PowerShell as administrator
- PS C:\> get-appxpackage -all to find the FULL package name
- PS C:\> Remove-AppxPackage example1_184.108.40.206_neutral__8wekyb3d8bbwe
This error can happen if you deploy your app for testing in multiple users, or you use different users to build and test apps. Or if you decide to play around with your user accounts.
You will see this kind of info in the error message – copy it to notepad or something:
The conflicting package is <<YourApp package short name>> and it was published by CN=<<publisher ID>>. (0x80073cf9)
Using only PowerShell opened as administrator, this package can be removed.
If the error says “ANOTHER USER”, rather than “THE CURRENT USER”, then login to the other user that you think is the one that has the package installed.
Then, use the PS command to get all the app packages. you may need to >cd C:\
PS C:\> get-appxpackage -all
There will be so many – best to copy the whole output text into notepad or something, and search for the app name in the Visual Studio error message. Copy the FULL app name.
Then use this command to delete the package
PS C:\> Remove-AppxPackage package1_220.127.116.11_neutral__8wekyb3d8bbwe
Try again to deploy the app from Visual Studio.