多个“设置启动项目"配置 [英] Multiple "Set StartUp Projects" Configurations
问题描述
我有一个很大的解决方案,出于调试目的,我必须使用 Visual Studio 2012 的设置启动项目"功能启动许多项目.但是,我经常需要更改需要启动的项目(有时是项目 A、B,C,有时是项目 B、C、D 等)
I have a big solution and for debugging purposes I have to start many Projects by using "Set StartUp Projects" Feature of Visual Studio 2012. However often I need to change what projects I need to start (Sometimes is Project A,B,C, sometimes Project B,C,D etc.)
有人知道这样的扩展吗?
Does someone knows such an Extension?
推荐答案
看看 SwitchStartupProject 扩展.(我是作者)
从 2.0 版本开始,它允许您配置多个多项目启动配置.您可以使用工具栏下拉框在配置之间切换:
Since version 2.0, it allows you to configure multiple multi-project startup configurations. You can switch between the configurations with a toolbar dropdown box:
配置两个配置(A、B、C)和(B、C、D):
To configure two configurations (A, B, C) and (B, C, D):
- 安装扩展(您可能需要重新启动 VS)
- 一个新的
Startup Project
下拉框出现在Start
按钮的右侧. - 点击它并选择
Configure...
- 选择单项目列表模式
None
(从下拉菜单中隐藏单个项目项) - 添加两个配置并将它们命名为
ABC
和BCD
- 为每个配置添加多个项目
- 选择项目的启动顺序
- Install the extension (you might need to restart VS)
- A new
Startup Project
dropdown box appears to the right of theStart
button. - Click on it and choose
Configure...
- Select single-project list mode
None
(to hide the single project items from the dropdown) - Add two configurations and name them
ABC
andBCD
- Add multiple projects to each of the configurations
- Choose the order in which the projects will be started
注意:与 Visual Studio 启动项目对话框不同,该扩展不允许您为项目选择 start without debugging
.因此,您添加到多项目启动配置中的所有项目都是通过调试启动的.
Note: Unlike the Visual Studio startup projects dialog, the extension does not allow you to choose start without debugging
for a project. So all projects that you add to a multi-project startup configuration are started with debugging.
这篇关于多个“设置启动项目"配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!