Skip to content

SwarmCoordinator fails to build with UE 5.5 #375

@jlsalmon

Description

@jlsalmon

When attempting to build UE 5.5.4, I encountered the following error at the Build Tools CS stage:

08:42:50 Running: C:\BuildTools\MSBuild\Current\Bin\MSBuild.exe "C:\UnrealEngine\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\SwarmCoordinator\SwarmCoordinator.csproj" /property:"Platform"="AnyCPU" /property:"Configuration"="Development" /restore /verbosity:minimal /nologo
08:42:51 
08:42:52 C:\UnrealEngine\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:\UnrealEngine\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:\UnrealEngine\Engine\Saved\CsTools\Engine\Source\Programs\UnrealSwarm\SwarmCoordinator\SwarmCoordinator.csproj]
08:42:52 Took 1.76s to run MSBuild.exe, ExitCode=1

Related forum post: https://forums.unrealengine.com/t/unable-to-build-ue-5-5-installedbuild/2243395

It seems that the UAT bundled dotnet version was upgraded to 8.0, but there are still some targets that rely on dotnet 6 e.g. SwarmCoordinator, but UAT does not install it automatically, and we are not installing dotnet 6 as part of the build prerequisites.

Installing dotnet-6.0-sdk via choco resolves the issue for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions