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

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

问题描述

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

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天全站免登陆