'How to force Rider to build with dotnet?

My build server is building my .NET6 project with dotnet build. The build fails (MSB3823) there but succeeds on my machine with Rider 2021.3.3. Running dotnet build from the command line gives me the same error, something intentionally changed for .NET Core, and msbuild succeeds. In an effort to diagnose the problem and sooner address future ones like it, how can I force Rider to use dotnet and not msbuild?

(essentially the opposite of this)

Edit: I have also tried checking/unchecking "Use Resharper Build" enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source