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)

2
  • 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. May 15, 2013 at 6:38
  • 1
    @MikkelLøkke - quick notification for you to check out the extension below :) worked well for me
    – Alex
    Jun 17, 2013 at 16:32

1 Answer 1

10

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

2
  • 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 4, 2014 at 15:45
  • 1
    @gakera The multi-project startup configurations and the other solution specific options are stored in a JSON file named <YourSolutionName>.startup.suo right next to your solution file. Dec 4, 2014 at 17:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.