Asha
Asha

Reputation: 4311

Don't set project as startup project but run it

In my solution there are eight different projects. Most of the time the startup project is project A but some times I need to run other projects to check things and to do that I must set other project as the startup project every time.

I want to know if there is any other way to run a project in the solution without setting it as the startup project? This will save me lots of time!

Upvotes: 27

Views: 6960

Answers (5)

Erik Anderson
Erik Anderson

Reputation: 5289

This answer I'm quoting from https://stackoverflow.com/a/20336060/130614 may help:

The options for startup projects can be found by right-clicking on the solution and selecting "Set Startup Projects". The options are pretty straightforward:

  • Current selection
  • Single startup project
  • Multiple startup projects

Upvotes: 2

user2275860
user2275860

Reputation: 57

Shift+F10 then press A key is a little faster than scrolling down.

Upvotes: -3

Oleg D.
Oleg D.

Reputation: 1194

You can also bind this command to keyboard shortcut: Tools->Options->Environment->Keyboard

Search for "Startnewinstance"

This way you can achieve desired with 0 clicks :)

Upvotes: 18

Andreas Bonini
Andreas Bonini

Reputation: 44752

It doesn't take a lot of time, just Right click the project and select "Set as startup project". 2 clicks.

If you want though you can use another method, right click the project, go to "Debug" and click on "Start new instance". 3 clicks!

Upvotes: 12

Brian Ensink
Brian Ensink

Reputation: 11218

Right click on the project, there is an entry on the context menu to run the project in the debugger. Its right underneath the command to "Set as StartUp project".

Debug > Start New Instance

Upvotes: 15

Related Questions