2

You may think this question is the exact duplicate of Running two projects at once in Visual Studio. Not really, it is the exact opposite.

I have a VS 2010 solution with two MVC3 projects. I've already configured the solution with a single startup project. However, each time I run it, VS spawns two servers with the two MVC applications (and one does not have direct dependency on the other).

So, how do I get rid of such behavior?

Community
  • 1
  • 1
Alpha
  • 7,586
  • 8
  • 59
  • 92

1 Answers1

7

Click on the project you don't want to start up, go to the Properties tab, and change 'Always start when debugging' to False.

Marty
  • 7,464
  • 1
  • 31
  • 52
  • 1
    You, sir, hit the nail in the very head. – Alpha Dec 22 '11 at 20:41
  • 1
    To be clear, you should not right click on the project and choose properties, rather left click on the project, switch to the Property Inspector tab (or view) and change Always Start when debugging there. – Erik Funkenbusch Dec 22 '11 at 20:41
  • Select the project in solution explorer and press F4 to bring up the properties. – Tim Abell Sep 13 '17 at 10:35
  • 1
    This setting is stored in the `.csproj.user` xml file which is not normally source-controlled so you'll have to do this on every machine. The setting is stored in `` – Tim Abell Sep 13 '17 at 10:43