admin管理员组

文章数量:1289845

I'm working on a Razor webapp that includes two solutions from two different folders. I need some projects from both solutions to run when I'm testing, but I'm only modifying code in one of the two solutions.

Is it possible to run projects from two solutions, using just one instance of Rider?

I am aware that it is possible to open both solutions and using Multi-Launch configs, but as my hardware is not really strong, I'd prefer not to open two instances just for this.

I'm working on a Razor webapp that includes two solutions from two different folders. I need some projects from both solutions to run when I'm testing, but I'm only modifying code in one of the two solutions.

Is it possible to run projects from two solutions, using just one instance of Rider?

I am aware that it is possible to open both solutions and using Multi-Launch configs, but as my hardware is not really strong, I'd prefer not to open two instances just for this.

Share Improve this question asked Feb 20 at 10:36 Olivér RaiszOlivér Raisz 5181 gold badge6 silver badges23 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

You can create several Shell configurations per app/project you want to launch, then create a Multi-launch or Compound configuration to launch these Shell configurations at once:

If you do not need to anyhow edit or debug the code from solution B, there is what you can do:

  • Open Solution A (the one you edit);
  • Go to Run | Edit Configurations;
  • Add new Shell Script run configuration (for the project that belongs to another solution);
  • Adjust it as per below example:
  • I used these values

Script text: dotnet run --project ~/RiderProjects/SomeRepoToDelete/WebRazorPAgesa/WebRazorPAgesa --launch-profile "https"; Working is directory set to the same path: path to project directory with .csproj inside;

Save the run configuration. Now you can select it from the toolbar to launch the application from another solution:

Hope that helps!

本文标签: ideMultiple Startup projects from different solutions in RiderStack Overflow