Choosing the StartUp Project

Tips Search

If you like the tips then you'll love the book!

Order your copy today:
http://www.amazon.com/gp/product/0735649928

Choosing the StartUp Project

  • Comments 4

Menu:  Project -> Set as StartUp Project; [Right-Click a project in Solution Explorer] -> Set as StartUp Project
Command:  Project.SetasStartUpProject
Versions:  2008,2010
Published:  5/9/2010
Code:  vstipEnv0014

 

When you work with multiple projects there is always one that is the "StartUp Project".  It's the one that starts up first when you start (with or without debugging).  It's easy to spot the current StartUp Project as it is always in bold when you look at Solution Explorer:

image

 

To change this, just Right-Click a project in Solution Explorer and choose "Set as StartUp Project":

image

 

Alternatively, you could go to Project -> Set as StartUp Project to do the same thing:

image

  • The annoying part about this is that the startup project is not saved in the solution file (.sln), but rather in the solution user options (.suo), which of course normally is not saved to a source repository. Thus, every new project member has to set the startup project correctly after checking out the solution.

  • Hey Now Zain,

    Nifty feature great when we are working on one project much more than others.

    Thx 4 the info,

    Catto

  • there is no such option available inprooject menu as wel as when i right click in solution explorer.. please suggest..

  • I had hoped this would discuss the annoying issue where VS2010 ignores the "Set As Startup Page" of the sln and starts the currently select page as the start up page.

    Please help me turn this "feature/bug" off. It's very irritating. It takes a minute or two for the app to startup then fail because there were objects needed in the first page but weren't loaded because VS2010 thought it better load the current page. Grrrrr.

Page 1 of 1 (4 items)
Leave a Comment
  • Please add 2 and 6 and type the answer here:
  • Post