如何在开始调试时阻止 WCF 测试客户端打开? [英] How can I stop the WCF test client from opening when I start debugging?

查看:21
本文介绍了如何在开始调试时阻止 WCF 测试客户端打开?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到我可以确保在开始调试时没有在活动窗口中打开该服务,但这有点烦人.似乎必须在 VS2010 中的某个地方进行一些设置才能将其关闭.

I realize that I can just make sure I don't have the service open in my active window when I start debugging, but that's a little annoying. It seems like there's got to be some setting in VS2010 somewhere to turn this off.

如果有人问为什么要关闭它?",那是因为该服务同时使用 SOAP 和 ReST.我在浏览器或 Fiddler 中测试了 ReST,并在 SOAPUI 中测试了 SOAP,并且真的不需要它.

For anyone who asks "why would you want to turn it off?", it's because the service is using both SOAP and ReST. I test ReST in browser or in Fiddler and test SOAP in SOAPUI, and really don't have a need for it.

谢谢.

推荐答案

这尤其令人沮丧.我正在运行 VS2010,并且无法像大多数帖子参考一样找到属性/调试"选项卡.但是,如果您

This is particularly frustrating. I am running VS2010, and cannot locate Properties/Debug tab as most posts reference. However, if you

  1. 右键单击卸载项目
  2. 右键点击编辑
  3. 找到 EnableWcfTestClientForSVCDefaultValue 并将其值设置为 False

<EnableWcfTestClientForSVCDefaultValue>
  False
</EnableWcfTestClientForSVCDefaultValue>

  • 保存,然后右键单击重新加载项目

    应该可以.

    不知道为什么这个版本的 VS2010 不显示调试选项卡.

    Not sure why this version of VS2010 does not display Debug tab.

    这篇关于如何在开始调试时阻止 WCF 测试客户端打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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