Visual Studio - 配置启动项目

发布于 2024-09-12 10:39:30 字数 180 浏览 1 评论 0原文

我有一个解决方案,其中包括一个网站、一些代码库、一个 WCF 服务和一个托管 WCF 服务的项目,该项目基本上只是一个带有 .svc 文件的 Web 应用程序。 问题是,当我运行网站时,WCF 服务和 WCF 服务都在两个不同的端口上启动。我只需要启动 WCF 服务主机,因为这就是我正在使用的主机。关于如何配置运行网站时启动哪个项目的任何想法?

I have a solution which includes a WebSite, a few Code Libraries, a WCF Service and a project that hosts the WCF service, which is basically just a web application with a .svc file in it.
The problem is that when i run the website, both the WCF Service and the WCF service start on two different ports. I would need only the WCF Service host to start, as that's the one i'm using. Any idea on how i can configure which project starts when i run the web site?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文