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

**URL:** <https://forums.unrealengine.com/t/ue-5-0-2-new-c-project-could-not-be-compiled-update-riderlink-is-the-culprit/577178>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 8, 2022, 4:14pm UTC](https://forums.unrealengine.com/t/ue-5-0-2-new-c-project-could-not-be-compiled-update-riderlink-is-the-culprit/577178 "2022-06-08T16:14:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubm123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rubm123/32/476292_2.png) [@rubm123](https://forums.unrealengine.com/u/rubm123)\
**Post date:** [June 8, 2022, 4:14pm UTC](https://forums.unrealengine.com/t/ue-5-0-2-new-c-project-could-not-be-compiled-update-riderlink-is-the-culprit/577178/1 "2022-06-08T16:14:01Z")

</div>

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:

```auto
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=0.0.0.0, 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.

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [June 8, 2022, 4:17pm UTC](https://forums.unrealengine.com/t/ue-5-0-2-new-c-project-could-not-be-compiled-update-riderlink-is-the-culprit/577178/2 "2022-06-08T16:17:14Z")

</div>

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](https://forums.unrealengine.com/t/trouble-creating-c-project-in-ue5-ea/232968/6)

I hope this solution works for you!

---

<div class="post-metadata">

**Author:** ![rubm123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rubm123/32/476292_2.png) [@rubm123](https://forums.unrealengine.com/u/rubm123)\
**Post date:** [June 8, 2022, 5:16pm UTC](https://forums.unrealengine.com/t/ue-5-0-2-new-c-project-could-not-be-compiled-update-riderlink-is-the-culprit/577178/3 "2022-06-08T17:16:39Z")

</div>

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

```auto
UE_5.0/Engine/Plugins/Developer/RiderLink
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:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/3/873869a91b7c0ba7b70d40473e44bc5effce6e44.png)

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

I guess this way I avoid similar troubles in future.
