I have a Visual Studio 2010 solution with several projects. One of the projects is set as the default project, but I want to change that by default.
I know that I can right click the project I want to be the startup project and select "Set as StartUp project", but this setting will be stored in the user's files (.slo and .user files).
As a company policy, we don't check these files in the source control system, therefore when another user opens the solution it will have a different project as the startup object.
Is there another way to set these values? Something like a setting on the .sln or .proj files?
Thanks
To change the startup project from the Solution Explorer, right-click the desired project and choose "Set as StartUp Project" from the context-sensitive menu that is displayed. You can also choose this menu item from the Project menu. To test that the project is correctly selected, press F5 to start it.
Right click your solution on the solution explorer and go to properties. Under Common Properties/Startup Projects you will see an overview about every project and it's auto startup status.
To change the startup itemIn the On startup, open list, choose what you want to happen after Visual Studio launches. You can choose from Start window (which lets you open a new or existing project), Most recent solution, or Empty environment.
From Arian Kulp's site, the way to change the default startup project for a solution is to edit the .sln file. You'll see some Project and EndProject lines. The first Project listed will be the default startup project, so just move the one you want to the top.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With