Visual Studio does not deploy at startup

I am creating a UWP application in Visual Studio and after cloning my project from GitHub into a separate system, mine was TemporaryKey.pfxmissing and I generated a new one in the manifest.

I noticed that after that every time I pressed the start button:

enter image description here

it will launch the application that is currently deployed on my system. Since I used this button in VS, she usually built my project, deployed it and then started it, whereas now it starts an application that has already been deployed before.

This means that every time I make changes to the code, I have to right-click my project to deploy, before starting it to see any changes.

I can’t understand why this is happening, but I suspect this because of the key mentioned at the beginning.

+4
source share
2 answers

When I encountered a problem that my application did not want to run the latest version, this was usually due to the fact that the deployment action (and sometimes even the assembly) was not removed in the configuration manager. Also make sure your configuration is set to x86 to run on your local computer. UWP applications must not have AnyCPU configuration (PCL only).

Right-click your solution to open the configuration manager.

Configuration manager


: UWP .gitignore.

# Allow demo temporary keys
!*_TemporaryKey.pfx

# NuGet
*.nuget.props
*.nuget.targets
*.lock.json

(.pfx) , ! TemporaryKey.pfx . NuGet - , , .

+4

visual studio

0

Source: https://habr.com/ru/post/1617847/


All Articles