Getting Error When Trying To Build With Rider

Hey so I am getting the error

UECommon.props(15, 3): [MSB4019] The imported project "C:\Program Files\JetBrains\JetBrains Rider 2024.3\tools\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "C:\Program Files\JetBrains\JetBrains Rider 2024.3\tools\MSBuild\Microsoft\VC\v170\\Microsoft.Cpp.Default.props" is correct, and that the file exists on disk.

whenever I try to build my project with Jetbrains Rider. It works perfectly fine when I try to build it with Visual Studios but the second I try to use Rider this happens. Does anyone have any ideas on how to fix this?

2 Likes


try to set the correct MSBuild

5 Likes

Thanks, Moolymax. This fixed it for me.

I switched from ‘Detected’ which was using the JetBrains’ copy of MSBuild.exe to:

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe

(For others, note that I have Visual Studio 2022 Community installed.)

My build output looks similar to what I was seeing to when I originally installed Rider a couple of weeks ago, using the VS2022 build chain. Somehow Rider has switched to using its own copy of MSBuild.exe a couple of days ago which is when these errors started appearing. I don’t know how this happened.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.