I'm trying to run my UWP app on my local machine and all was going well until Windows crashed. After that I started getting the error message:
The Project ### needs to be deployed before it can be started
Here is the screenshot:
I have uninstalled VS and reinstalled it and created new projects but I'm getting the same issue every time. Both the Debug and Deploy boxes are ticked in Configuration Manager for Debug ans x64. I have seen a few different answers for this but none have worked so far.
This in turn leads to the error message:
Severity Code Description Project File Line Suppression State Error DEP0600: Deployment failed. XmlException - '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1. [0x80131940] App3
Every new app I create does exactly the same thing
In my case it helped when I switched the option Any CPU to x64. Then I could normally debug the program, just as in this picture: Change CPU type
I have the solution. I couldn't uninstall anything because I couldn't find it installed anywhere. What I had to do is make sure the Platform that was selected in the Configuration Manager of the solution (Right click solution -> Properties) was the same as in the Visual Studio Editor.
Then I saw the checkboxes "Build" and "Deploy" were unchecked. I checked them and it worked again.
User contributions licensed under CC BY-SA 3.0