log.txt (306.6 KB)
This is the build log when I rebuild a project using 5.6.1-dev source code version, this project is from my friend who create zipped and sent to me.
NewHeroShooter.zip (8.0 MB)
Highlight:
EpicGames.MsBuild.csproj: [NU1903] Package ‘Microsoft.Build’ 17.11.4 has a known high severity vulnerability, Microsoft Security Advisory CVE-2025-55247 | .NET Denial of Service Vulnerability · CVE-2025-55247 · GitHub Advisory Database · GitHub
Microsoft.MakeFile.targets(44, 5): [MSB3073] 命令““D:\Epic Games\UnrealEngine-dev-5.6\Engine\Build\BatchFiles\Build.bat” -Target=“NewHeroShooterEditor Win64 Development -Project=“D:\GameProject\NewHeroShooter\NewHeroShooter.uproject”” -Target=“ShaderCompileWorker Win64 Development -Project=“D:\GameProject\NewHeroShooter\NewHeroShooter.uproject” -Quiet” -WaitMutex -FromMsBuild -architecture=x64”已退出,代码为 8。
Other project can be build successfully, and this is using the 5.6.1-dev source code version I just build last night.
Hello there @SbeanCNBanzai!
Checking with my peers, that exit code 8 you are receiving is just a reference to the build crash. And the NU1903 it’s a regular .NET SDK warning from Microsoft, it shouldn’t be related to the failure.
From your log, I think the main problem is here:
Could not find definition for module ‘NewHeroShooter’,
(referenced via NewHeroShooterEditor.Target.cs)
Result: Failed (RulesError)
This means UE is trying to build “NewHeroShooterEditor”, which references a game module called “NewHeroShooter” contained in “NewHeroShooterEditor.Target.cs”, and failing to find any definitions. Meaning, the module is missing from your directory. It should be present here:
D:\GameProject\NewHeroShooter\Source\NewHeroShooter\NewHeroShooter.Build.cs
As you mentioned that the project was zipped and sent over by your friend, it’s possible that part of the folder is misplaced, or it wasn’t extracted. If you can locate the missing module, and place it in the target location, regenerating the project files from there should fix the issue.
god ■■■■
I copied old version of this project with NewHeroShooter file folder to the new version and compile successed.
So if I just create a new folder maybe can also compile success?
Excellent, the compile worked! And yes, if you create a new folder, incoroporate the contents of NewHeroShooter, and regenerate your project files, the current build should be able to compile as well.
If it starts failing with a different error, please make sure you clear up your project’s cache, as it’s most likely filled with data from the previous attempt. To do so, go to your project’s main directory, and delete folders DerivedDataCache, Intermediate, and Saved. After that, re-open your project, allow it to rebuild, then test the compile again.