大多是我自己找到的bug,有遇到其他bug也可以反馈来帮忙找答案

c++无法编译该项目

1
2
3
4
5
6
7
8
9
无法编译该项目。要在Visual Studio中打开它吗?

Running E:/Program Files/Epic Games/UE_5.4/Engine/Build/BatchFiles/Build.bat Development Win64 -Project="D:/Documents/UEProjects/UEproject1/UEproject1.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Development Win64 -Project="D:/Documents/UEProjects/UEproject1/UEproject1.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\YSir\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for UEproject1Editor (no existing makefile)
Total execution time: 0.60 seconds
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 UnrealBuildTool.

这里大概是说多了个来历不明的名为 RD 的模块,通常与RiderLink这个插件有关,或许你印象里没安装过,但他会由于各种原因自动安装,我的他隐匿的存放在E:\Program Files\Epic Games\UE_5.4\Engine\Plugins\Developer\RiderLink文件夹