Olivér Raisz
Olivér Raisz

Reputation: 516

Multiple Startup projects from different solutions in Rider

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.

Upvotes: 0

Views: 26

Answers (2)

Dmitry Kazantsev
Dmitry Kazantsev

Reputation: 109

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: enter image description here enter image description here

Upvotes: 0

Dmitry Kazantsev
Dmitry Kazantsev

Reputation: 109

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: enter image description here
  • 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: enter image description here

Hope that helps!

Upvotes: 1

Related Questions