阻止 Visual Studio 2010 启动 ASP.net 开发服务器

发布于 2024-11-15 04:00:41 字数 216 浏览 9 评论 0原文

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

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

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

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

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

热鲨 2024-11-22 04:00:41

不知道为什么默认情况下会这样做,但如果您的问题确实是“如何关闭它”,那么请执行以下操作:

  1. 选择您的 ASP.NET 项目
    解决方法
  2. 按F4调出
    属性(不是属性选项卡
    选择属性时您会得到
    从上下文菜单)
  3. 更改开发服务器 ->永远开始
    当调试为“False”时

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"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文