Visual Studio 2017 project needs to be deployed before it can be started

2

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:

enter image description here

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

c#
deployment
visual-studio-2017
asked on Stack Overflow Jun 6, 2017 by Keith Whalen • edited Jun 6, 2017 by halfer

2 Answers

3

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

answered on Stack Overflow Dec 4, 2017 by Tomasz Chudzik
1

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.

Picture showing platforms on the Visual Studio Editor and Configuration Manager

answered on Stack Overflow Apr 13, 2019 by El Mac

User contributions licensed under CC BY-SA 3.0