在 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 中调试时启动多个项目
发布评论