0

What information does visual studio look at when determining the start-up project?

I have a C++ visual studio solution with 2 projects. My source control is messed up so I have to copy my solution folder from the repository to my local disk. When I do this and I run my application, the wrong project is set as the start-up project. In the repository I check in the .sln and .vcproj file as well as the cpp/h files, but not the .suo or .user files.

Slack Groverglow
  • 846
  • 7
  • 25
  • You do know that you can easily change the start up project from within the IDE? – rrirower Dec 15 '14 at 18:48
  • 1
    I've found that in my case, if there is not suo file when a solution is opened, then the first project listen in the sln file is the startup project until the suo file is generated. – Slack Groverglow Dec 16 '14 at 18:31

1 Answers1

1

Visual Studio: Where does it store "Set as startup project"?

The startup project is stored in the .suo. As mentioned in that SO post, you should not check these in, because they are not portable across machines/directories.

Community
  • 1
  • 1
MuertoExcobito
  • 9,741
  • 2
  • 37
  • 78