Normally we build the script projects at UAT runtime, but there’s an old GenerateProjectFiles step that adds references into the AutomationTool.csproj project so they’ll build from visual studio (to make it easier to debug those projects), but there may be some pathing issue where these aren’t being resolved correctly. Could you try updating the following line in Engine\Build\BatchFiles\BuildUAT.bat from
dotnet build Programs\AutomationTool\AutomationTool.csproj -c Development -v %MSBUILD_LOGLEVEL%to
dotnet build Programs\AutomationTool\AutomationTool.csproj -c Development -v %MSBUILD_LOGLEVEL% -p AutomationToolProjectOnly=truemaking this change should prevent the script projects from building when the main application is compiled with dotnet and defer compiling them until AutomationTool is run.
Ran some more tests anytime a build is run from a batch file it fails with all the output. But running directly from a CMD window it works. Tried to find issue myself with no luck.
Here is an example from one of our build batch files.
`@echo off
cls
set CurrentDir=%~Dp0
set ProjectDir=%CurrentDir%......
set EngineDir=%ProjectDir%
set ProjectFile=“%ProjectDir%\P1Game.uproject”
set RunUatBat=“%EngineDir%..\Engine\Build\BatchFiles\RunUAT.bat”
set UeCmdTool=“%EngineDir%..\Engine\Binaries\Win64\UnrealEditor-Cmd.exe”
set BuildsDir=“%ProjectDir%\LocalBuilds”