我正在为即将到来的工作面试做一个项目。我习惯在 Visual Studio 中编写 C#,但自从我改用 Linux 后,我正在尝试使用 Rider。
在 Visual Studio 中,您可以添加多个项目作为“启动项目”,但我不确定如何在 Rider 中执行此操作。
我的文件结构是:
BlazorApp
│ README.md
│ .gitignore
│
└───MyApp.Web(Blazor project)
│
│___MyApp.Api(ASP.NET Core Web App with the API template)
│
└───MyApp.Models(Class library)
其中
MyApp.Api
应先开始,然后MyApp.Web
。
在 Rider 2023.3 中,他们添加了
Multi-Launch configuration
,它允许您按照自己指定的顺序启动两个或多个项目。使用之前的 Compound configuration
,您无法指定项目的启动顺序。因此,如果这是您需要的东西,请检查一下。您可以在 https://www.jetbrains.com/help/rider/2023.3/Run_Debug_Multiple.html#multi_launch 上了解如何设置它。
这是文档中的 GIF,它展示了如何使用多重启动配置运行多个项目:
这是解释步骤的文本副本: