Visual Studio not deploying when running

kskyriacou

I'm building a UWP app in Visual Studio and after cloning my project from GitHub on a separate system, my TemporaryKey.pfx was missing and I generated a new one in the manifest.

I noticed that after doing so each time I clicked on the run button:

enter image description here

it would run the application that was currently deployed on my system. Ever since I've been using this button in VS it usually built my project, deployed it and then ran it whereas now it just runs the application that has already been deployed previously.

This means that every time I make a change in code I have to right click my project to deploy before running it to see any changes.

Can't figure out why this is happening, but I suspect it's due to the key mentioned in the beginning.

Bart

When I encountered the issue that my app didn't want to run the latest version, it usually was because the deploy (and sometimes even build) action was unchecked in the configuration manager. Also make sure your configuration is set to x86 to run on your local machine. UWP apps should NOT have a AnyCPU configuration (only PCLs do).

Right-click your solution to open the configuration manager.

Configuration manager


Bonus: For UWP apps I usually add following lines to my .gitignore file.

# Allow demo temporary keys
!*_TemporaryKey.pfx

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

Key files (.pfx) are ignored by default, which is good! But adding the TemporaryKey.pfx file saves you a lot of trouble. The NuGet extensions added are files that are regenerated on each build, so best to not add them to your version control either.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Visual Studio 2015 sometimes freezes when deploying Xamarin app to device

From Dev

Getting errors when deploying cordova app from visual studio 2015

From Dev

Getting errors when deploying cordova app from visual studio 2015

From Dev

How to also build when deploying locally with visual studio 2015

From Dev

Program slow down when running on Visual Studio

From Dev

Visual Studio - Connect dialog when running project

From Dev

How to run EF migrations when deploying to Azure Website via Visual Studio Online

From Dev

Some assemblies not being included when deploying Azure webjobs from Visual Studio 2013

From Dev

Relevant dependencies (DLL) not being copied when deploying using Visual Studio 2013

From Dev

Azure ExpiredAuthenticationToken during New-AzureRmResourceGroupDeployment when deploying resources via Visual Studio

From Dev

How to resolve this error "NoRegisteredProviderFound" when deploying to an azure webapp on Visual Studio 2015?

From Dev

MVC 5 with Visual Studio 2013 (Connection Strings in Repository Code when Deploying to Azure)

From Dev

Deploy extra files to the site directory when deploying to Azure Websites from Visual Studio Online

From Dev

Ignore cache in IE when running through Visual Studio

From Dev

'Access violation' when running application through Visual Studio

From Dev

Visual Studio becomes unresponsive when running a program using a SoundEffect

From Dev

Visual Studio recompiles "moc" files every time when running qmake

From Dev

STARTUPINFO.wShowWindow is 0 when running from Visual Studio

From Dev

"No extensions found" when running Visual Studio Code from source

From Dev

White Screen when running Graphics Diagnostics in Visual Studio 2013

From Dev

Run other project when running unit tests in Visual Studio 2013

From Dev

Command window popping up on visual studio when running a program

From Dev

Visual Studio recompiles "moc" files every time when running qmake

From Dev

Visual Studio deleting source code when running Web Project

From Dev

Error when running Docker Compose in Visual Studio project for RabbitMQ container

From Dev

Error 500.21 when running site on IISExpress using visual studio

From Dev

Visual Studio 2013 Not Running

From Dev

Visual Studio 2013 and Deploying Typescript Html Template

From Dev

Deploying to Windows Phone 10 fails on Visual Studio

Related Related

  1. 1

    Visual Studio 2015 sometimes freezes when deploying Xamarin app to device

  2. 2

    Getting errors when deploying cordova app from visual studio 2015

  3. 3

    Getting errors when deploying cordova app from visual studio 2015

  4. 4

    How to also build when deploying locally with visual studio 2015

  5. 5

    Program slow down when running on Visual Studio

  6. 6

    Visual Studio - Connect dialog when running project

  7. 7

    How to run EF migrations when deploying to Azure Website via Visual Studio Online

  8. 8

    Some assemblies not being included when deploying Azure webjobs from Visual Studio 2013

  9. 9

    Relevant dependencies (DLL) not being copied when deploying using Visual Studio 2013

  10. 10

    Azure ExpiredAuthenticationToken during New-AzureRmResourceGroupDeployment when deploying resources via Visual Studio

  11. 11

    How to resolve this error "NoRegisteredProviderFound" when deploying to an azure webapp on Visual Studio 2015?

  12. 12

    MVC 5 with Visual Studio 2013 (Connection Strings in Repository Code when Deploying to Azure)

  13. 13

    Deploy extra files to the site directory when deploying to Azure Websites from Visual Studio Online

  14. 14

    Ignore cache in IE when running through Visual Studio

  15. 15

    'Access violation' when running application through Visual Studio

  16. 16

    Visual Studio becomes unresponsive when running a program using a SoundEffect

  17. 17

    Visual Studio recompiles "moc" files every time when running qmake

  18. 18

    STARTUPINFO.wShowWindow is 0 when running from Visual Studio

  19. 19

    "No extensions found" when running Visual Studio Code from source

  20. 20

    White Screen when running Graphics Diagnostics in Visual Studio 2013

  21. 21

    Run other project when running unit tests in Visual Studio 2013

  22. 22

    Command window popping up on visual studio when running a program

  23. 23

    Visual Studio recompiles "moc" files every time when running qmake

  24. 24

    Visual Studio deleting source code when running Web Project

  25. 25

    Error when running Docker Compose in Visual Studio project for RabbitMQ container

  26. 26

    Error 500.21 when running site on IISExpress using visual studio

  27. 27

    Visual Studio 2013 Not Running

  28. 28

    Visual Studio 2013 and Deploying Typescript Html Template

  29. 29

    Deploying to Windows Phone 10 fails on Visual Studio

HotTag

Archive