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

编程入门 行业动态 更新时间:2024-10-22 02:50:50
本文介绍了阻止Visual Studio 2010启动ASP开发服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

I have 3 projects in my solution.

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

Whenever I attempt to debug a unit test in any of the projects, VS2010 starts 3 (1 for each project) ASP 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:

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

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

    本文发布于:2023-11-10 22:28:26,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1576637.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:服务器   Studio   Visual   net   ASP

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!