ERROR: Couldn't find target rules file for target 'UE4Editor' in rules assembly 'UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

See original GitHub issue

[ue4-docker build] Error: failed to build image “adamrehn/ue4-engine:5.0.0-ltsc2019-vs2019”.

Step 1/8 : ARG NAMESPACE
Step 2/8 : ARG TAG
Step 3/8 : ARG PREREQS_TAG
Step 4/8 : FROM ${NAMESPACE}/ue4-source:${TAG}-${PREREQS_TAG}
 ---> fe420154cb8b
Step 5/8 : RUN GenerateProjectFiles.bat && echo. && echo.RUN directive complete. Docker will now commit the filesystem layer to disk. && echo.Note that for large filesystem layers this can take quite some time. && echo.Performing filesystem layer commit... && echo.
 ---> Using cache
 ---> efa6bdfc160a
Step 6/8 : RUN .\Engine\Build\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex && echo. && echo.RUN directive complete. Docker will now commit the filesystem layer to disk. && echo.Note that for large filesystem layers this can take quite some time. && echo.Performing filesystem layer commit... && echo.
 ---> Running in 4ec92b61447e
Using bundled DotNet SDK
Log file: C:\UnrealEngine\Engine\Programs\UnrealBuildTool\Log.txt
Using 'git status' to determine working set for adaptive non-unity build (C:\UnrealEngine).
Creating makefile for UE4Editor (no existing makefile)
ERROR: Couldn't find target rules file for target 'UE4Editor' in rules assembly 'UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
       Location: C:\UnrealEngine\Engine\Intermediate\Build\BuildRules\UE5Rules.dll
       Target rules found:
The command 'cmd /S /C .\Engine\Build\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex && echo. && echo.RUN directive complete. Docker will now commit the filesystem layer to disk. && echo.Note that for large filesystem layers this can take quite some time. && echo.Performing filesystem layer commit... && echo.' returned a non-zero code: 6
[ue4-docker build] Error: failed to build image "adamrehn/ue4-engine:5.0.0-ltsc2019-vs2019".

command : ue4-docker build --ue-version 5.0.0 --visual-studio 2019 using virtual machine windows server 2019

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
jonpascommented, Apr 30, 2022

I really, really wonder if anyone needs ue4-engine image at all…

Even if someone does, most documented use-cases don’t have a use for it. I think it should be disabled by default.

--target=full should be the default. I think it’s better than just --target=minimal because it’s a very quick to build on top of full and quite useful.

2reactions
slonopotamuscommented, Apr 30, 2022

Please, use --no-engine, or, better --target=full/--target=minimal. ue4-engine image is currently broken for UE5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How may I resolve an error "Couldn't find target rules file for ...
ERROR : Couldn't find target rules file for target 'AyselKeep' in rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, ...
Read more >
Build Task Error: Couldn't find target rules - Ask - GameDev.tv
ERROR : Couldn't find target rules file for target 'ObstacleAssaultEditor' in rules assembly 'UE5Rules, Version=0.0.0.0, Culture=neutral, ...
Read more >
Problem building development server. "Couldn't find target ...
"Couldn't find target rules. Some solution i tried: Transfered project to root folder of engine and created text file : "Games.uprojectdirs" ...
Read more >
Feature Request: Build non-project-specific tools with ue4 ...
Right now, ue4 build prepends the project name to the provided target. We have special-case code to build ShaderCompilerWorker (from #14) ...
Read more >
错误: ERROR: Couldn't find target rules file for target ... - uefans
ERROR : Couldn't find target rules file for target'ShaderCompileWorker'in rules assembly'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found