Reputation: 1085
I have two different solutions in VS2015, and both of them have the box For new solutions use the currently selected project as the startup project
ticked in Tools > Options > Projects and Solutions > Build and Run
.
But just one of the solutions allows me to change a new project to run, by clicking on the project, or on any of its dependencies. For the other solution I have to click the project with the right-mouse button and choose Set as startup project
.
What exactly is making the two solutions to have such distinct behaviors?
Upvotes: 0
Views: 45
Reputation: 1136
This is a setting of the Solution.
Right click your solution
Properties -> Common Properties -> Startup Project -> Current Selection
The Current Selection option is a radio button with Single startup project and Multiple startup projects being your other 2 options
The CheckBox
asked about
Tools -> Options... -> Projects and Solutions -> Build and Run
Is used to set the setting described previously by default for any new Visual Studio solution that is created
Upvotes: 2