阻止Visual Studio 2010启动ASP.net开发服务器 [英] Prevent Visual Studio 2010 from starting ASP.net development server

本文介绍了阻止Visual Studio 2010启动ASP.net开发服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的解决方案中有3个项目.

I have 3 projects in my solution.

每当我尝试在任何项目中调试单元测试时,VS2010都会启动3个(每个项目1个)ASP.net开发服务器.

Whenever I attempt to debug a unit test in any of the projects, VS2010 starts 3 (1 for each project) ASP.net development servers.

我遇到的问题是,VS2010需要很长时间才能启动这些开发服务器,因此我在尝试调试单元测试时花了很多时间.

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.

我不确定为什么VS2010会这样做...是否有正当理由?调试单元测试时,是否有办法阻止这些开发服务器启动?

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?

推荐答案

不确定默认情况下为什么这样做,但是如果您的问题确实是如何关闭此功能",请执行以下操作:

Not sure why it does this by default, but if your question is really "how do I turn this off", then do this:

  1. 在您的计算机中选择ASP.NET项目 解决方案
  2. 按F4调出 属性(不是属性"标签 您在选择属性时得到 从上下文菜单中)
  3. 更改开发服务器->始终启动 调试为"False"时
  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"

这篇关于阻止Visual Studio 2010启动ASP.net开发服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆