在 Visual Studio 2010 中调试时启动多个项目

编程入门 行业动态 更新时间:2024-10-05 05:19:59
本文介绍了在 Visual Studio 2010 中调试时启动多个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在 Visual Studio 2010 中,我有一个 Web 应用程序和一个控制台应用程序(实际上是一个使用 NServiceBus 的服务,但它在本地作为控制台应用程序运行),我想在点击调试时同时启动它们.

In Visual Studio 2010, I have a web application and a console application (actually a service using NServiceBus, but it runs locally as a console application) that I want to both startup when I hit Debug.

现在我将 Web 应用程序设置为启动应用程序并在浏览器中打开它,然后我右键单击我的服务并转到调试 -> 启动新实例.这工作正常,但我宁愿不手动执行此操作,因为我有时会忘记并需要运行服务来处理来自网站的消息.

Right now I have the Web Application set as the startup application and it opens in a browser, then I right click on my Service and go to Debug -> Start new instance. This works fine, but I would rather not do it manually because I sometimes forget and need the Service running to handle messages from the website.

谢谢.

推荐答案

您可以通过在解决方案资源管理器上右键单击解决方案节点并从菜单中选择属性"来选择要启动的多个项目和顺序来启动多个项目.选择多个启动项目"的单选按钮,然后为所需的项目选择作为启动的操作.

You can start multiple projects by choosing multiple projects to start and the order by right clicking on the solution node on the solution explorer and selecting Properties from the menu. Select the radio button for "Multiple startup projects" and choose the action as Start for the required projects.

更多推荐

在 Visual Studio 2010 中调试时启动多个项目

本文发布于:2023-11-03 04:13:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554210.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   项目   Visual   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!