在 Visual Studio 2010 中调试时启动多个项目 [英] Starting multiple projects when debugging in Visual Studio 2010

查看:85
本文介绍了在 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 中调试时启动多个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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