简体   繁体   English

在Visual Studio中是否等同于Eclipse“运行配置”?

[英]Is in Visual Studio an equivalent to the Eclipse “Run Configurations”?

Is there in Visual Studio an equivalent to the Eclipse "Run Configurations"? Visual Studio中是否等同于Eclipse“运行配置”? In Eclipse I can setup hundreds of run configurations with many different command line parameters. 在Eclipse中,我可以使用许多不同的命令行参数设置数百个运行配置。 In Visual Studio I can setup only one configuration for the active project. 在Visual Studio中,我只能为活动项目设置一个配置。

You can create multiple configurations just like in eclipse, screens are different but you can do pretty much everything. 您可以像在eclipse中一样创建多个配置,屏幕不同但您可以完成所有操作。 You can click on Menu -> Build \\ Configuration Manager and in every combo box, you will see last two options as New and Edit, which will let you copy existing configuration and create new ones. 您可以单击菜单 - >构建\\配置管理器,在每个组合框中,您将看到最后两个选项为新建和编辑,这将允许您复制现有配置并创建新配置。 Just next to Run button, you can also change active configuration and once you have changed your active configuration you can also change individual run and project settings with different command lines and different directives for compilation. 在“运行”按钮旁边,您还可以更改活动配置,一旦更改了活动配置,还可以使用不同的命令行和不同的编译指令更改单个运行和项目设置。

Resharper does support run configurations. Resharper确实支持运行配置。 See https://www.jetbrains.com/help/resharper/Run_Configurations.html 请参阅https://www.jetbrains.com/help/resharper/Run_Configurations.html

Sadly, you cannot build a run config that starts multiple projects -- something you can do with the (single) run config built in to VS. 遗憾的是,您无法构建启动多个项目的运行配置 - 您可以使用内置于VS的(单个)运行配置来执行此操作。 That would be a useful feature since I'm a constantly switching between a single project run and a multi-project run setup. 这将是一个有用的功能,因为我不断在单个项目运行和多项目运行设置之间切换。 And although not a huge pain, it is a small PITA. 虽然不是一个巨大的痛苦,但它是一个小型的PITA。

Since you can easily pick a project to start via the built-in VS run config, I don't see much value in the resharper feature. 由于您可以通过内置的VS运行配置轻松选择要启动的项目,因此我认为resharper功能没有太多价值。

Well, you can do some things with a resharper run config that VS run config does not support. 好吧,你可以使用VS run config不支持的resharper运行配置做一些事情。 You can run an arbitrary exe -- something you can setup via a VS external tool. 您可以运行任意exe - 您可以通过VS外部工具设置。 And, you can run a static method. 而且,您可以运行静态方法。 Sounds cool, but I've never had need to do that. 听起来很酷,但我从来没有必要那样做。

So, there is a tool that provides the feature you asked for. 因此,有一个工具可以提供您要求的功能。 But as often is the case, the feature may not be all that useful :( 但通常情况下,该功能可能不是那么有用:(

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

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