7

In my application I often need to change the startup project from the UI shell to the tests and vice-versa.

I know that by using the context menu in Solution Explorer, I can right-click and select a project as the start-up project. However, there are many projects in my solution and this is time-consuming.

In VS 2010 I had macros to do this, but now they have been removed.

The question is: In VS2012 is there a faster way to switch startup projects than finding them and using the right-click menu? I will accept any answer (extensions, scripts etc)

Alex
  • 7,639
  • 3
  • 45
  • 58
  • 1
    I really want to know this too. Alternatively some way to set a "By Configuration" Startup project, So that the "Debug" configuration starts a Console application project, "Release" starts a Windows Service project and ideally "Test" runs the test suite though Gallio. – Mikkel Løkke May 15 '13 at 06:38
  • 1
    @MikkelLøkke - quick notification for you to check out the extension below :) worked well for me – Alex Jun 17 '13 at 16:32

1 Answers1

10

For that purpose I created the VS extension SwitchStartupProject that adds a toolbar dropdown box to switch the startup project.

Andreas Bilger
  • 929
  • 1
  • 10
  • 18
  • Your extension is a godsend @Andreas - Where does it store the information set in the Options? I would like to be able to commit/share the different Multi-Project Startup Configurations to my team members. – gakera Dec 04 '14 at 15:45
  • 1
    @gakera The multi-project startup configurations and the other solution specific options are stored in a JSON file named `.startup.suo` right next to your solution file. – Andreas Bilger Dec 04 '14 at 17:22