如何防止Visual Studio在调试时启动WcfSvcHost.exe? [英] How to prevent Visual Studio from launching WcfSvcHost.exe while debugging?

查看:102
本文介绍了如何防止Visual Studio在调试时启动WcfSvcHost.exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2008中有一个解决方案,其中有多个项目。 WCF项目是项目之一。有时我只想调试其他项目,但是当我按F5键时,Visual Studio启动了wcfsvchost.exe来托管WCF项目,即使它不是 StartUp Project。

I have a solution in Visual Studio 2008 which has multiple projects. One of the projects is a WCF project. Sometimes I just want to debug other projects, but when I press F5, Visual Studio has wcfsvchost.exe launched to host the WCF project even it is not "StartUp Project".

当前,每次调试其他项目时,我都必须卸载WCF项目,以防止烦人的WcfSvcHost.exe主机弹出。但是,这并不方便。有人知道防止WCF项目以调试模式托管的更好的主意吗?

Currently, every time I debugging other projects, I Have to Unload the WCF project to prevent the annoying WcfSvcHost.exe host pop up. However, it is not convenient. Anybody know better idea to prevent WCF project to be hosted in debugging mode?

推荐答案

转到属性页的 WCF选项部分您的WCF项目,然后取消选中在同一解决方案中调试另一个项目时启动WCF服务主机复选框。

Go to WCF Options section in the property page of your WCF project and unselect the check box that says 'Start WCF Service Host when debugging another project in the same solution'.

这篇关于如何防止Visual Studio在调试时启动WcfSvcHost.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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