Search code examples
.netvisual-studiotfsprojects-and-solutions

How do I save the start-up project I selected in VS2008


We have a solution that is source controlled by Team System. When we get all the files from the source control for a new computer, VS2008 chooses a random project to be the start-up project.

When changing the start-up project, the configuration is saved for the current user and doesn't update anything in the solution itself.

It seems like the selection of Start-Up project is saved locally and can't be checked-in to the source control.

Is there a way to save the default Start-Up project for a Solution in VS2008 and keep it in the source control so that every user that opens the solution will get it automatically?


Solution

  • I found an answer:

    After checking and looking for a different solution for my solution, I found this old post: LINK

    The first answer by Kirtan suggested a fix that could do the trick. He suggests to edit the .sln file in a text editor and put the project that I want as start-up project as the first project in the list.

    When there is no .suo file, the first project in the list is selected as the default start-up project.

    I've tried this and it works!!!

    Now I can Check-in the updated .sln file and be sure that the default start-up project is the right one.

    Thanks for all the help...