Unable to build UE 5.5 InstalledBuild

Hello!
I’m trying to build a InstalledEngineBuild for UE 5.5 and getting this error:

06:47:14   Running: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe "F:\TeamCity\BuildAgent\work\926a3f111536690c\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\SwarmCoordinator\SwarmCoordinator.csproj" /property:"Platform"="AnyCPU" /property:"Configuration"="Development" /restore /verbosity:minimal /nologo
06:47:14   
06:47:14   F:\TeamCity\BuildAgent\work\926a3f111536690c\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\NuGet.targets(439,5): error MSB4062: Die NuGet.Build.Tasks.WarnForInvalidProjectsTask-Aufgabe konnte nicht aus der F:\TeamCity\BuildAgent\work\926a3f111536690c\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\NuGet.Build.Tasks.dll-Assembly geladen werden. Die Datei oder Assembly "NuGet.Build.Tasks, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856ad364e35" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden. Stellen Sie sicher, dass die <UsingTask>-Deklaration korrekt ist, die Assembly und alle zugehörigen Abhängigkeiten verfügbar sind und die Aufgabe eine öffentliche Klasse enthält, die Microsoft.Build.Framework.ITask implementiert. [F:\TeamCity\BuildAgent\work\926a3f111536690c\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\SwarmCoordinator\SwarmCoordinator.csproj]
06:47:14   Took 0,46s to run MSBuild.exe, ExitCode=1
06:47:14   Command failed (Result:1): C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe "F:\TeamCity\BuildAgent\work\926a3f111536690c\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\SwarmCoordinator\SwarmCoordinator.csproj" /property:"Platform"="AnyCPU" /property:"Configuration"="Development" /restore /verbosity:minimal /nologo. See logfile for details: 'MSBuild-2024.12.25-06.47.14.txt'
06:47:14   AutomationTool executed for 8h 3m 49s
06:47:14   AutomationTool exiting with ExitCode=1 (Error_Unknown)
06:47:14   BUILD FAILED
06:47:14   RunUAT failed

Unfortunately it is in German but besically it says that the NuGet.Build.Tasks.dll DLL can’t be loaded because one of its dependencies was not found.
I’m using TeamCity with this build command:

Engine\Build\BatchFiles\RunUAT.bat BuildGraph -target="Make Installed Build Win64" -nosign -script="Engine\Build\InstalledEngineBuild.xml" -set:WithDDC=false -set:SignExecutables=false -set:EmbedSrcSrvInfo=false -set:WithFullDebugInfo=true -set:HostPlatformEditorOnly=false -set:WithWin64=true -set:WithMac=false -set:WithAndroid=true -set:WithIOS=false -set:WithTVOS=false -set:WithLinux=true -set:WithLinuxArm64=true -set:WithHoloLens=false -set:CompileDatasmithPlugins=false -set:WithServer=true -set:WithClient=true

My Visual Studio version is 17.8.16, for the UE 5.3 and 5.4 it worked well, no issues with building.

(post deleted by author)

(post deleted by author)

I have the same issue. I tried to build with MSVC version 17.8, 17.10 and the current latest. All resulted in the same issue. I have cleared the directory and download everything from scratch but doesn’t seems to work either. Would be very interested in a solution to this. Here is the part of my output showing the error:

Running: C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe "C:\Git\HaEngine\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\SwarmCoordinator\SwarmCoordinator.csproj" /property:"Platform"="AnyCPU" /property:"Configuration"="Development" /restore /verbosity:minimal /nologo

C:\Git\HaEngine\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\NuGet.targets(439,5): error MSB4062: The "NuGet.Build.Tasks.WarnForInvalidProjectsTask" task could not be loaded from the assembly C:\Git\HaEngine\Engine\Binaries\ThirdParty\DotNet\8.0.300\win-x64\sdk\8.0.300\NuGet.Build.Tasks.dll. Could not load file or assembly 'NuGet.Build.Tasks, Version=6.10.0.97, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. An attempt was made to load a program with an incorrect format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C:\Git\HaEngine\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\SwarmCoordinator\SwarmCoordinator.csproj]
Took 0.34s to run MSBuild.exe, ExitCode=1
Command failed (Result:1): C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe "C:\Git\HaEngine\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\SwarmCoordinator\SwarmCoordinator.csproj" /property:"Platform"="AnyCPU" /property:"Configuration"="Development" /restore /verbosity:minimal /nologo. See logfile for details: 'MSBuild-2025.01.14-21.13.03.txt'
AutomationTool executed for 2h 28m 49s
AutomationTool exiting with ExitCode=1 (Error_Unknown)
BUILD FAILED

I finally had some time to investigate this further. It turns out I missed a step in the installed build guide: installing the DotNet 6.0 runtime Windows DotNet 6.0 Runtime. After installing it and restarting the computer, the build succeeded. I hope this helps resolve the issue for someone else.