Prevent Visual Studio 2010 from starting ASP.net d

2020-02-10 19:09发布

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条回答
趁早两清
2楼-- · 2020-02-10 19:45

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"
查看更多
登录 后发表回答