Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is in Visual Studio an equivalent to the Eclipse "Run Configurations"?

Is there in Visual Studio an equivalent to the Eclipse "Run Configurations"? In Eclipse I can setup hundreds of run configurations with many different command line parameters. In Visual Studio I can setup only one configuration for the active project.

like image 273
Horcrux7 Avatar asked Jan 27 '11 16:01

Horcrux7


People also ask

What is run configuration in Eclipse?

The Run Configurations dialog allows you create multiple run configurations. Each run configuration can start an application. The Run Configuration dialog can be invoked by selecting the Run Configurations menu item from the Run menu. A name for the run configuration.

Where is Eclipse Runtime config?

In the Eclipse menu bar, click Run > Run Configurations. In the Run Configurations dialog box, click Java Application in the left pane. Click the New launch configuration icon in the left upper corner. By default, Eclipse names the run configuration after the name of your Java class.

What is run configuration?

Run configuration is a set of parameters, arguments, and settings that define how an application is launched.


2 Answers

You can create multiple configurations just like in eclipse, screens are different but you can do pretty much everything. 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.

like image 137
Akash Kava Avatar answered Oct 21 '22 00:10

Akash Kava


Resharper does support run configurations. See 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. 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.

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.

Well, you can do some things with a resharper run config that VS run config does not support. You can run an arbitrary exe -- something you can setup via a VS external tool. 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 :(

like image 30
steve Avatar answered Oct 20 '22 22:10

steve