Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Visual Studio 2005, choosing to debug a specific web project only starts an ASP.NET Development Server for the project selected.

In Visual Studio 2010, debugging starts an ASP.NET Development Server for all 6 of the web projects in this solution, regardless of which one I chose to debug.

Is there a way to change this behavior to only open the Development Server for the web site project that I intend to debug? It's a drain on resources, and annoying to have to close each of them every time I start this.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Finally found the answer to my question. Apparently each csproj.user file has a setting:

 <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>

Changing this from the default of true to false, allows you to make it so it won't do this setting.

share|improve this answer

You should be able to see each project in the solution in the "Solution Explorer." Find the project that you want to debug, right-click on it, and select "debug" from the menu that pops-up. Give it a shot once (that works for me).

share|improve this answer
    
This builds only this project, and debugs into it successfully, but it still opens up 6 ASP.NET Development Server instances. –  Brisbe42 Dec 15 '11 at 21:49
    
Ok, in Solution Explorer right-click on the solution, and click on "Properties." On the Solution property pages expand "Common Properties" and click on "Startup Project." You should have the option to specify a default or even choose "current selection." –  BryceAtNetwork23 Dec 15 '11 at 21:57
    
By default, it was current selection. Changing it to a specific Startup Project still successfully runs that project, debugs into it, but still is opening up ASP.NET Development Server instances for all 6 web projects in the solution. –  Brisbe42 Dec 15 '11 at 22:04
    
In the same properties window, the next item down (underneath Startup Project) should be "Project Dependencies." Once you get in there, select the project (that you're trying to debug) from the drop-down list, and see what it's dependent on. It could be that it's just running the rest of those out of necessity. –  BryceAtNetwork23 Dec 15 '11 at 22:08
    
I'm trying to run the 'WebServices' app. It depends on Business, Data, and Library. It builds only these projects, but then opens up 6 development server instances, including for the main one which has no dependency on this, or vice versa. –  Brisbe42 Dec 15 '11 at 22:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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