- 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.
错误原因:
链接:https://forums.unrealengine.com/t/trouble-creating-c-project-in-ue5-ea/232968/5
解决办法:
1. 下载最新的RiderSourceCodeAcess
链接:https://github.com/JetBrains/RiderSourceCodeAccess
2. 替换到引擎的插件目录
{EngineFolder}/Engine/Plugins/Developer/
3. 相应把{EngineFolder}/Engine/Plugins/Developer/
下的RiderLink
copy到项目的Plugins
目录下{GameFolder}/Plugins/Developer/
4. 保证RiderLink
安装的目录是Game
,而不是Engine
注意:
修改完毕之后,Rider还是会提示这个错误,但是编译引擎,可以启动项目了