It seems like this setting should be stored in the solution file so it's shared across all users and part of source code control. Since we don't check in the suo file, each user has to set this separately which seems strange.
C# – Why is “Set as Startup” option stored in the suo file and not the sln file
cvisual studio
Related Topic
- C# – Interface defining a constructor signature
- C# – SqlException from Entity Framework – New transaction is not allowed because there are other threads running in the session
- C# – “A project with an Output type of Class Library cannot be started directly”
- Asp.net-mvc – Visual Studio debugging/loading very slow
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
- Visual-studio – the “storage.ide” file beneath the Visual Studio solution folder, and what is “persistent storage”
Best Answer
It is absolutely necessary that everyone can define their StartUp Project themselves, as Jon has already said. But to have a dedicated default one would be great, and as I can tell, it is possible!
If you don’t have a .suo file in your solution directory, Visual Studio picks the first project in your .sln file as the default startup project.
Close your Visual Studio and open the .sln file in your favorite text editor. Starting in line 4, you see all your projects encapsulated in
Project
–EndProject
lines.Cut and paste the desired default startup project to the top position.
Delete your .suo file.
Open your solution in Visual Studio. Ta daa!