Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: Set default startup project

Tags:

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

like image 319
willvv Avatar asked Jan 25 '11 18:01

willvv


People also ask

How do I set my startup project?

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.

How do I find the startup project in Visual Studio 2019?

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.

How do I change the selected startup item in Visual Studio?

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.


1 Answers

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.

like image 184
Tim S. Avatar answered Oct 30 '22 04:10

Tim S.