Mao
Mao

Reputation: 1085

Two solutions with the same settings show different behavior in Visual Studio 2015

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

Answers (1)

Tyler Benzing
Tyler Benzing

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

enter image description here

The CheckBox asked about

Tools -> Options... -> Projects and Solutions -> Build and Run

enter image description here

Is used to set the setting described previously by default for any new Visual Studio solution that is created

Upvotes: 2

Related Questions