如何停止Visual Studio运行所有Web服务 [英] How can I stop Visual Studio running all my web services

查看:359
本文介绍了如何停止Visual Studio运行所有Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何阻止Visual Studio 2008自动运行我的Web服务.

How to stop Visual Studio 2008 from automatically running my web services.

我有一个大型Visual Studio 2008解决方案,其中包含许多Web应用程序项目以及几个WCF Web服务.我已将解决方案设置为只有一个启动项目,但是当我右键单击Web应用程序项目并选择调试">启动新实例"时,系统托盘中会出现多个WebDev.WebServer图标.项目中的每个Web服务都有一个.

I have a large Visual Studio 2008 solution that contains a number of web app projects and also several wcf web services. I have set the solution to have only one startup project, yet when I right-click on the web app project and select "Debug" > "Start New Instance" there appear multiple WebDev.WebServer icons in the system tray. There is one for every web service in the project.

注意:我的Web应用程序项目没有有一个Web参考,但没有正在启动的任何WCF Web服务.

Note: My web app project does have one Web Reference, but not to any of the WCF web services that are being launched.

我希望能够停止运行这些不需要的Web服务.

I want to be able to stop these un-wanted web services from running.

推荐答案

尤里卡!

  1. 单击Web服务项目.
  2. 查看属性"标签/窗口(Ctrl + W,P).对于Web服务,您将看到一个名为"调试时始终启动"的属性(默认情况下该属性设置为True). 注意:这是在属性表上,而不是项目的属性对话框.
  3. 为所有不需要的Web应用程序/Web服务设置调试时始终启动" = False.
  1. Click on the web service project.
  2. Look at the "Properties" tab/window (Ctrl+W, P). For a web service you will see a property called "Always Start When Debugging" (which of course is set to True by default). NOTE: This is on the property sheet, not the property dialog for the project.
  3. Set "Always Start When Debugging" = False for all the un-wanted web apps/ web services.

我的解决方案现在可以快速构建并开始!

My solution builds and starts really quick now!

这篇关于如何停止Visual Studio运行所有Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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