Reputation: 393
I'm working on a project for a upcoming job interview. I'm used to writing C# in Visual Studio, but since I've changed to Linux, I'm trying to use Rider.
In Visual Studio you can add multiple projects as your 'Startup Project', and I'm not sure how to do this in Rider.
My file structure is:
BlazorApp
│ README.md
│ .gitignore
│
└───MyApp.Web(Blazor project)
│
│___MyApp.Api(ASP.NET Core Web App with the API template)
│
└───MyApp.Models(Class library)
Where MyApp.Api
should start first and afterwards MyApp.Web
.
Upvotes: 38
Views: 13890
Reputation: 3931
In Rider 2023.3, they have added Multi-Launch configuration
, which allows you to start two or more projects in an order that you specify yourself. With the previous Compound configuration
, you were not able to specify the launch order of the projects. So if this is something you need, check it out. You can read about how to set it up on https://www.jetbrains.com/help/rider/2023.3/Run_Debug_Multiple.html#multi_launch.
Here's a GIF from the documentation, which shows how to run multiple projects using the Multi-Launch configuration:
And here's a copy of the text that explains the steps:
Upvotes: 8
Reputation: 13940
Find and select the Compound configuration:
The compound configuration is just a grouping of existing run configurations so if you need to set environment variables or program or runtime arguments, you can:
Upvotes: 68