9

I've got a Visual Studio solution containing a couple of console app projects, and used the solution property pages to launch both of them when debugging. For some reason, this setting isn't saved in source control so when I check out the solution on a different computer it has to be set up over again.

Where is this info stored and how can I add it to version control?

pnuts
  • 58,317
  • 11
  • 87
  • 139
Luke
  • 18,585
  • 24
  • 87
  • 110

2 Answers2

7

You can install the SwitchStartupProject extension. This will create a file called YourSolution.startup.suo containing the startup projects, which you can check into source control.

See also their wiki for configuration instructions and other info.

dan-gph
  • 16,301
  • 12
  • 61
  • 79
  • thanks for posting, this is exactly what I was searching for – DLeh Aug 03 '16 at 17:10
  • This extension is not installable on VS 2019 :( – Behzad Ebrahimi Oct 17 '19 at 16:11
  • Seems to work great with Visual Studio Professional 2022. A "professional" IDE should have this features itself, but who cares about his users... I often have to switch between debugging client & server and client only (with external server). I hardly understand how I could live without this extension until today. I probably went soft. :D – The incredible Jan Aug 23 '23 at 14:01
6

I believe it is in the Visual Studio User Solution User Options file *.suo. This file is hidden by default. Most source control providers ignore this file by default because it stores location specific paths.

Dustin Laine
  • 37,935
  • 10
  • 86
  • 125