Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 keeps switching startup project

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 ?

like image 465
Anders Nilsson Avatar asked Dec 14 '15 15:12

Anders Nilsson


People also ask

How do I change the startup project in Visual Studio?

Right click the project in the Solution window and then select Set As Startup Project.

How do I remove set as startup project in Visual Studio?

Select a project and right click, then select 'Remove from StartUp Projects...'

How do I change the startup project code in Visual Studio?

In Visual Studio, you can get this done by – right click on the project, and choose “ Set as Startup project" . If the project has multiple classes with Main , in project Properties, Application tab, select the class from the Startup object dropdown.


1 Answers

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

like image 100
Anders Nilsson Avatar answered Sep 24 '22 00:09

Anders Nilsson