Visual Studio 2015 keeps switching startup project

Visual Studio-2015ProjectStartup

Visual Studio-2015 Problem Overview


When changing startup project for the solution from project A (initial startup) to project B (newly added project) the change of the startup project does not appear to be saved.

When running F5 VS always change back to original setting of project A.

I have checked the settings and also options build and run (for new solutions use the currently selected project as startup project) is not checked.

I have tried to delete the .suo file and so far no luck so any other ideas whats going on ?

Visual Studio-2015 Solutions


Solution 1 - Visual Studio-2015

Resharper , run configuration was the culprit in this case. The change was caused by that

Solution 2 - Visual Studio-2015

ReSharper -> Tools -> Run Configurations...

I like to delete all the run configurations I find in that menu.

enter image description hereenter image description here

Solution 3 - Visual Studio-2015

I had this experience after using the Resharper command 'Create Run Configuration' on a unit-test project. Thereafter, using F5 would always try (unsuccessfully) to run that project, and switch my default. I worked around it by running 'Create Run Configuration' again on the project I want to run.

I reported this as a bug at https://resharper-support.jetbrains.com/hc/en-us/requests/853379?flash_digest=cf3e117b89155bb0dcffa49c21f732b49d461f49

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAnders NilssonView Question on Stackoverflow
Solution 1 - Visual Studio-2015Anders NilssonView Answer on Stackoverflow
Solution 2 - Visual Studio-2015Jacob BrewerView Answer on Stackoverflow
Solution 3 - Visual Studio-2015JohnTView Answer on Stackoverflow