Set Multiple Startup Projects in Visual Studio for

2019-02-16 18:38发布

问题:

Is it possible/how do I set multiple start up projects in Visual Studio for Mac?

It is very easy and common to do it in VS for Windows (https://msdn.microsoft.com/en-us/library/ms165413.aspx) but struggling to find the option on VS for Mac in the application and online.

回答1:

You can do this by creating a run configuration for the solution.

  1. Select the solution in the Solution window and right click it and select Options.
  2. Select Run - Configurations.
  3. Click the New button and specify a name for the configuration.
  4. Expand the Configurations on the left hand side and select the new run configuration just created from the left hand side.
  5. Then check those projects you want to run when the solution is run.
  6. Click OK to save the changes.

Then in the main toolbar select the run configuration.

Then when you debug/run both projects will be started.