How can I stop Visual Studio running all my web services

佐手、 提交于 2019-12-03 22:18:56
Howard Ricketts

Eureka!

  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!

This isn't ideal, but I generally just right-click->unload them until I need them. They are still available in the solution (to reload on demand), but it avoids this launch niggle, and releases some resources (and makes "build solution" quicker etc).

Try right clicking on your SOLUTION.

Common Properties -> Startup Project -> Single Startup Project (and selecting the website only).

try that?

Not a direct answer, but why do you keep those projects in 1 solution?

If you break it up you solve your problem and you could have multiple instances of VS2008 running to work on those Apps and Services simultaneously.

I think there have been some updates to VS 2010 since this was originally answered. The way I'm doing this is to:

1) Right click the WCF project and go to 'Properties'

2) Select the tab for 'WCF Options'

3) Uncheck the box that says 'Start WCF Service Host when debugging another project in the same solution'

Are there any project dependencies set between your project and the WCF projects? That might cause VS to think it needs to get them all started before running your main project.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!