UE5 Rider | Problem building project

I have an issue compiling. I've tried everything that I can think of including uninstalling and reinstalling including C++ sdks etc.
It seems that VCTargetsPath isn't set. Not sure where or how it should be. 

11>UECommon.props(15,3): Error MSB4019 : The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the expression in the Import declaration "\Microsoft.Cpp.Default.props" is correct, and that the file exists on disk.
 

1
2 comments

Hi Phillip, 

I'm facing the same issue right now. Yesterday, when I shut down my machine, it was working fine. Since a lot of VS stuff is required even though Rider is the IDE of choice, I tried to build the game in VS….Successful! From Visual Studio, I cannot launch the UE Editor though. So there's something clearly wrong here as well.

I tried updating VS to the latest release, but that didn't help.

Back in Rider: When checking the paths, I noticed that there were quite some pointing nowhere, like this one:

There is no VC folder in `[…]\Microsoft`

I have no idea what caused this, but when checking my windows update history, I found that KB5035942 has been installed today. Maybe this is related to the removal of specific VC compiler versions?

 

UPDATE 1 (VS):

This VS-UE integration status check indicated that there were things missing. 

Specifically, it was the WIN 11 SDK (10.0.26100.0), I guess…

This installation did not have any effect on the Rider Issue, but at least I can work on my game while this is being solved (hopefully)

 

UPDATE 2 (Rider):

I still refuse to understand why this is failing to build all of a sudden, but the error messages are related to the C++ compiler in use. 

So I tried to change my IDE settings → Build, Execution, Deployment → Toolset and Build → MSBuild Version.  

I chose the one from VS 2022, which I know works.

No more errors (at least none related to this issue):

0

Sebastian Edelmeier Thanks so much for coming back with your updates. Changing the MSBuilder version from that dropdown solved it for me too! I appreciate it, shewy now I can go back to using Rider. I was using VisualStudio with an add-on and it's just not the same.

0

Please sign in to leave a comment.