Prevent Visual Studio 2010 from starting ASP.net development server

泄露秘密 提交于 2019-11-30 08:14:13

问题


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:

  1. Select the ASP.NET project in your solution
  2. Press F4 to bring up the properties (not the properties tab you get when choosing Properties from the context menu)
  3. Change Development Server -> Always Start When Debugging to "False"


来源:https://stackoverflow.com/questions/6345269/prevent-visual-studio-2010-from-starting-asp-net-development-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!