In Jetbrains Rider, the Build Configurations let you change some of the parameters passed in when the Build Project command is invoked, but there's nowhere I can find to enter the specific Runtime Identifier.
The reason we'd like to provide a specific identifier, is because one of the project dependencies use native libraries that if the runtime is not specified, it outputs those libraries into a "runtimes" folder with all the targets inside, and when the project runs, it doesn't know how to load the proper one. By specifying a runtime, only the native libraries for that runtime are going to be copied directly into the output bin folder.
We are currently resorting to build the project through the command line using dotnet build -r osx-x64 MyProject.csproj
, and then running the project through Rider, but that is not a good developer experience.
The question, is there a configuration in Rider that we can specify the runtime that's going to be passed into the dotnet build
command when the Build is invoked through the menu, or Key Bindings?
The specific project in this case is an C# Azure Functions project, but it also applies to regular Console projects as well.
- Runtime Identifiers: https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
- JetBrains Rider 2023.1.2
- MacOS Ventura 13.4
- Dotnet Version 6.0
- MsBuild 17.0
Expecting to have a way to define custom build arguments for projects