willvv
willvv

Reputation: 8649

Visual Studio: Set default startup project

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

Upvotes: 39

Views: 50119

Answers (2)

thinh
thinh

Reputation: 37

Follow these steps:

  1. Choose the name of the project which you want to set default startup project
  2. Click to the Project on toolbar and then click Set as startup project

Upvotes: -3

Tim S.
Tim S.

Reputation: 56566

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.

Upvotes: 59

Related Questions