Running into the same issue: my project builds without issues in the Editor but when I try to set up a build script, the build fails.
Taking 3 steps for this:
- Generate Project files
- Run UBT
- Run UAT
(the dotnet part of) UBT complains about a missing target file:
Couldn’t find target rules file for target ‘[module]’ in rules assembly ‘UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’
While the target file does exist in the Source folder and the module is configured (as Runtime) in the .uproject file.
When I leave out the ubt step, uat complains about the missing module:
Message dialog closed, result: Ok, title: Message, text: The game module ‘[module]’ could not be found. Please ensure that this module exists and that it is compiled.
I have copied the uat parameters which are reported in the log when running the (successful) build in the editor.
I am running the script from a clean project (no Binaries, Intermediate etc) and the project contains 1 custom plugin.
[edit: just realized this is an old thread, made a new post: Project builds using Rider but UBT fails when running a build script]