When I open an Unreal 5 project in Rider, all the classes from
UnrealBuildTool are shown as errors:
The type ‘object’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘mscorlib, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089’
But the game itself still builds. Only the parts that use
UnrealBuildTool report errors. How to fix it?
I’m guessing you installed vanilla Rider that doesn’t have the Unreal plugin installed or updated.
Make sure you have the
UnrealLink Rider plugin installed, then install the
RiderLink plugin in your game.
Also check in Languages > C++ > Unreal Engine and make sure you have
Enable UnrealHeaderTool inspections checked. (There are some other great options to check in there as well).
Good luck, hope this helps.