问题
I have 3 projects in my solution.
Whenever I attempt to debug a unit test in any of the projects, VS2010 starts 3 (1 for each project) ASP.net development servers.
The issue I have is that VS2010 takes a long time starting these development servers and as a result I spend a lot of time waiting whilst I attempt to debug unit tests.
I am not sure why VS2010 does this... Is there a valid reason? Is there a way to prevent these development servers from starting when debugging unit tests?
回答1:
Not sure why it does this by default, but if your question is really "how do I turn this off", then do this:
- Select the ASP.NET project in your solution
- Press F4 to bring up the properties (not the properties tab you get when choosing Properties from the context menu)
- Change Development Server -> Always Start When Debugging to "False"
来源:https://stackoverflow.com/questions/6345269/prevent-visual-studio-2010-from-starting-asp-net-development-server