UE 5.0.2: New C++ Project: ... could not be compiled UPDATE: RiderLink is the culprit

Has this bug been reported already? Is there a workaround?

How to reproduce:

  • Fresh install of UE 5.0.2
  • File → New Project
  • Select Games → blank
  • Select C++
  • (put a proper folder and project name)
  • Create

UE starts up and shows an error message:

The project could not be compiled. Would you like to open it in Rider?

Running F:/ue/UE_5.0/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.exe Development Win64 -Project="F:/ue/projects/MurderInSpaceScratch/MurderInSpaceScratch.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\rubm\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for MurderInSpaceScratchEditor (no existing makefile)
ERROR: Expecting to find a type to be declared in a module rules named 'RD' in UE5Rules, Version=, Culture=neutral, PublicKeyToken=null.  This type must derive from the 'ModuleRules' type defined by Unreal Build Tool.

I start the project in Rider to find the same error.

Hi @rubm123!

I found a similar thread with the same issue as you! Here is a link to the solution that seems to be working for others:

Trouble creating C++ project in UE5 EA

I hope this solution works for you!

Thanks, you pointed me in the right direction. Indeed, some rider plugin interferes here.

The solution in my case was, to stupidly delete these two folders

UE_5.0/Engine/Plugins/Developer/RiderSourceAccess (or something like this)

Note that just unchecking these two plugins in UE and restarting UE wasn’t enough.

With the folders removed, I could create a new C++ project just fine and the first time in Rider, when prompted to install RiderLink:


I chose the path of the righteous and klicked “install plugin in Game”.

I guess this way I avoid similar troubles in future.