简体   繁体   English

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

[英]Starting multiple projects when debugging in Visual Studio 2010

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. 在Visual Studio 2010中,我有一个Web应用程序和一个控制台应用程序(实际上是一个使用NServiceBus的服务,但它在本地作为控制台应用程序运行),我想在启动Debug时启动它。

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

Thanks. 谢谢。

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. 选择“多个启动项目”的单选按钮,然后为所需项目选择“启动”操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM