Rider 2021.2.1 hangs building a C# project with msbuild.exe (not Rider 2018)

Hi, I have a solution that consists of two command line executables and two library projects.
When I manually build the two library projects it completes with no errors.
When I build either of the two cmdline apps, the build hangs for a minute and then I get this error:

Build was canceled. Failed to successfully launch or connect to a child MSBuild.exe process. Verify that the MSBuild.exe "/Users/jchow/Library/Caches/VisualStudio/8.0/MSBuild/64118_1/MSBuild.dll" launches successfully, and that it is loading the same microsoft.build.dll that the launching process loaded. If the location seems incorrect, try specifying the correct location in the BuildParameters object, or with the MSBUILD_EXE_PATH environment variable.

Is it saying that Rider itself is also loading a microsoft.build.dll from somewhere that's different than what's listed? How can I check what Rider is trying to load?
If I do need to set a MSBUILD_EXE_PATH env variable, what path should I set it to?

/Users/jchow/Library/Caches/VisualStudio/8.0/MSBuild/64118_1?


Here's what's in my build output. This is no different than when I successfully build the two library projects:

Build with surface heuristics started at 15:57:59
Use build tool: /Users/jchow/Library/Caches/VisualStudio/8.0/MsBuild/64118_1/MSBuild.dll
CONSOLE: Microsoft (R) Build Engine version 16.4.0-ci for Mono
CONSOLE: Copyright (C) Microsoft Corporation. All rights reserved.
CONSOLE: Build started 12/8/2021 3:58:00 PM.
CONSOLE: Project "/var/folders/ht/cjskpmbj4h17pfg3wd65pb9r39k76_/T/Janozuz.proj" on node 1 (default targets).
CONSOLE: ControllerTarget:
CONSOLE: Run controller from /Applications/Rider.app/Contents/lib/ReSharperHost/JetBrains.Platform.MsBuildTask.v15.dll
0>------- Started building project: BobValidatorInfo

Some context:
This is a project that I was able to load/build with Rider 2018. This seems to have started after I upgraded to Rider 2021.2.1

Has anyone seen this before pls?

 

Thanks,

Jeff

1 comment
Comment actions Permalink

Hello Jeff,

Could you please right click on Solution -> Advanced Build Actions -> Rebuild Solution with Diagnostics and send the resulting log with a new issue on our tracker. Thank you in advance!

 

0

Please sign in to leave a comment.