What determines the default startup project?

I have an open source project that includes Visual Studio project files. There is a solution file with four project files. When the source files are distributed and unpacked, Visual Studio selects the wrong project as the default project. New users do not know that they need to right-click on a specific project, and then select Set as launch project .

I tried reordering the projects in the solution file, so I first needed the appropriate project, and I tried changing the UUID to the corresponding project so that it is the lowest. None of them helped the Visual Studio issue pick the wrong startup project.

I am testing versions of Visual Studio Visual Studio 2005, 2008, 2010, 2012, 2013 and 2015 .

What determines the default startup project?

What can I do to make Visual Studio choose the right startup project?


A related question: Why is the Install As Start option stored in the suo file, and not in the sln file? but he asks "Why ..." and does not ask "How ...".

+2
source share
1 answer
  • If there is a * .suo file, the launch project will be saved there.
  • Otherwise, the first project specified in the * .sln file will be Startup.

(tested since VS 2013)

+2
source

Source: https://habr.com/ru/post/1612558/


All Articles