AutomationUtils.Automation.csproj migration to 5.6

Migrating my project from 5.1 to 5.6, it does’nt work out of the box.

My project has some C++ support and after converting the project to 5.6 and opening it, it tells me that I need to rebuild the sources in Visual Studio.

I said okay, yeah, let me do it, but i get a weird error related to AutomationUtils:

I have no idea how to deal with this or even debug this. i odnt even know how the AutomationTool works (or what that beast even does)

Warning As Error: Package ‘Magick.NET-Q16-HDRI-AnyCPU’ 14.7.0 has a known moderate severity vulnerability, Warning As Error: Package ‘Magick.NET-Q16-HDRI-AnyCPU’ 14.7.0 has a known high severity vulnerability, Warning As Error: Package ‘Magick.NET-Q16-HDRI-AnyCPU’ 14.7.0 has a known high severity vulnerability, Metadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundWarning As Error: Package ‘Magick.NET-Q16-HDRI-AnyCPU’ 14.7.0 has a known moderate severity vulnerability, Warning As Error: Package ‘Magick.NET-Q16-HDRI-AnyCPU’ 14.7.0 has a known high severity vulnerability, Warning As Error: Package ‘Magick.NET-Q16-HDRI-AnyCPU’ 14.7.0 has a known high severity vulnerability, Metadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll’ could not be foundMetadata file ‘C:\Program Files\Epic Games\UE_5.6\Engine\Platforms\VisionOS\Binaries\DotNET\AutomationTool\AutomationScripts\ref\VisionOS.Automation.dll’ could not be found

And Here is the full build output:

Build started at 00:07...
1>------ Skipped Build: Project: UE5, Configuration: BuiltWithUnrealBuildTool Win64 ------
1>Project not selected to build for this solution configuration 
2>------ Build started: Project: AutomationUtils.Automation, Configuration: Development Any CPU ------
3>------ Build started: Project: Base, Configuration: Development_Editor x64 ------
Failed to restore C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\AutomationUtils.Automation.csproj (in 191 ms).
Failed to restore C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj (in 192 ms).
NuGet package restore failed. Please see Error List window for detailed warnings and errors.
2>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\AutomationUtils.Automation.csproj : error NU1902: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-6hgw-6x87-578x
2>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\AutomationUtils.Automation.csproj : error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-cjc8-g9w8-chfw
2>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\AutomationUtils.Automation.csproj : error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-qp29-wxp5-wh82
2>Done building project "AutomationUtils.Automation.csproj" -- FAILED.
4>------ Build started: Project: SteamDeck.Automation, Configuration: Development Any CPU ------
5>------ Build started: Project: Localization.Automation, Configuration: Development Any CPU ------
6>------ Build started: Project: BuildGraph.Automation, Configuration: Development Any CPU ------
7>------ Build started: Project: Apple.Automation, Configuration: Development Any CPU ------
3>Using bundled DotNet SDK version: 8.0.300 win-x64
3>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" BaseEditor Win64 Development -Project="C:\Users\tanwe\Documents\Unreal Projects\Base 5.6\Base.uproject" -WaitMutex -FromMsBuild -architecture=x64
3>Log file: C:\Users\tanwe\AppData\Local\UnrealBuildTool\Log.txt
3>Using 'git status' to determine working set for adaptive non-unity build (C:\Users\tanwe\Documents\Unreal Projects\Base 5.6).
3>Creating makefile for BaseEditor (no existing makefile)
6>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
5>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
7>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
4>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
4>Done building project "SteamDeck.Automation.csproj" -- FAILED.
8>------ Build started: Project: Linux.Automation, Configuration: Development Any CPU ------
5>Done building project "Localization.Automation.csproj" -- FAILED.
7>Done building project "Apple.Automation.csproj" -- FAILED.
9>------ Build started: Project: XLocLocalization.Automation, Configuration: Development Any CPU ------
10>------ Build started: Project: SmartlingLocalization.Automation, Configuration: Development Any CPU ------
11>------ Build started: Project: Mac.Automation, Configuration: Development Any CPU ------
6>Done building project "BuildGraph.Automation.csproj" -- FAILED.
12>------ Build started: Project: Win.Automation, Configuration: Development Any CPU ------
9>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
9>Done building project "XLocLocalization.Automation.csproj" -- FAILED.
10>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
10>Done building project "SmartlingLocalization.Automation.csproj" -- FAILED.
11>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
11>Done building project "Mac.Automation.csproj" -- FAILED.
13>------ Build started: Project: IOS.Automation, Configuration: Development Any CPU ------
14>------ Build started: Project: AutomationScripts.Automation, Configuration: Development Any CPU ------
8>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
8>Done building project "Linux.Automation.csproj" -- FAILED.
15>------ Build started: Project: OneSkyLocalization.Automation, Configuration: Development Any CPU ------
15>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
15>Done building project "OneSkyLocalization.Automation.csproj" -- FAILED.
16>------ Build started: Project: CrowdinLocalization.Automation, Configuration: Development Any CPU ------
13>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
13>Done building project "IOS.Automation.csproj" -- FAILED.
14>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
14>Done building project "AutomationScripts.Automation.csproj" -- FAILED.
17>------ Build started: Project: TVOS.Automation, Configuration: Development Any CPU ------
16>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
16>Done building project "CrowdinLocalization.Automation.csproj" -- FAILED.
18>------ Build started: Project: VisionOS.Automation, Configuration: Development Any CPU ------
19>------ Build started: Project: Android.Automation, Configuration: Development Any CPU ------
12>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
12>Done building project "Win.Automation.csproj" -- FAILED.
17>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
17>Done building project "TVOS.Automation.csproj" -- FAILED.
20>------ Build started: Project: CookedEditor.Automation, Configuration: Development Any CPU ------
19>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
19>Done building project "Android.Automation.csproj" -- FAILED.
18>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
18>Done building project "VisionOS.Automation.csproj" -- FAILED.
21>------ Build started: Project: Gauntlet.Automation, Configuration: Development Any CPU ------
20>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
20>Done building project "CookedEditor.Automation.csproj" -- FAILED.
21>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1902: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-6hgw-6x87-578x
21>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-cjc8-g9w8-chfw
21>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\Gauntlet\Gauntlet.Automation.csproj : error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-qp29-wxp5-wh82
21>Done building project "Gauntlet.Automation.csproj" -- FAILED.
22>------ Build started: Project: LiveLinkHub.Automation, Configuration: Development Any CPU ------
22>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
22>Done building project "LiveLinkHub.Automation.csproj" -- FAILED.
23>------ Build started: Project: Turnkey.Automation, Configuration: Development Any CPU ------
24>------ Build started: Project: Mutable.Automation, Configuration: Development Any CPU ------
25>------ Build started: Project: LowLevelTests.Automation, Configuration: Development Any CPU ------
26>------ Build started: Project: Insights.Automation, Configuration: Development Any CPU ------
25>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
25>Done building project "LowLevelTests.Automation.csproj" -- FAILED.
26>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
26>Done building project "Insights.Automation.csproj" -- FAILED.
23>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
23>Done building project "Turnkey.Automation.csproj" -- FAILED.
27>------ Build started: Project: AutomationTool, Configuration: Development Any CPU ------
3>EXEC : warning : [Upgrade]
3>EXEC : warning : [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:
3>EXEC : warning : [Upgrade]     bLegacyParentIncludePaths = false               => Omits module parent folders from include paths to reduce compiler command line length. (Previously: true).
3>EXEC : warning : [Upgrade]     CppStandard = CppStandardVersion.Default        => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).
3>EXEC : warning : [Upgrade]     WindowsPlatform.bStrictConformanceMode = true   => Updates MSVC strict conformance mode to true (Previously: false).
3>EXEC : warning : [Upgrade]     bValidateFormatStrings = true                   => Enables compile-time validation of strings+args passed to UE_LOG. (Previously: false).
3>EXEC : warning : [Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V5;' in BaseEditor.Target.cs, and explicitly overriding settings that differ from the new defaults.
3>EXEC : warning : [Upgrade]
3>EXEC : warning : [Upgrade]
3>EXEC : warning : [Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
3>EXEC : warning : [Upgrade]     IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1
3>EXEC : warning : [Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_6;' in BaseEditor.Target.cs.
3>EXEC : warning : [Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
3>EXEC : warning : [Upgrade]
3>EXEC : warning : [Upgrade]
3>EXEC : warning : [Upgrade] The latest version of UE no longer supports CppStandardVersion.Cpp17 which may require code changes.
3>EXEC : warning : [Upgrade] Suppress this message by setting 'CppStandard = CppStandardVersion.Cpp20;' in BaseEditor.Target.cs.
3>EXEC : warning : [Upgrade]
27>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationTool.csproj : warning NU1902: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-6hgw-6x87-578x
27>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationTool.csproj : warning NU1903: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-cjc8-g9w8-chfw
27>C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationTool.csproj : warning NU1903: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-qp29-wxp5-wh82
27>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Source\Programs\AutomationTool\AutomationUtils\bin\Development\ref\AutomationUtils.Automation.dll' could not be found
27>CSC : error CS0006: Metadata file 'C:\Program Files\Epic Games\UE_5.6\Engine\Platforms\VisionOS\Binaries\DotNET\AutomationTool\AutomationScripts\ref\VisionOS.Automation.dll' could not be found
27>Done building project "AutomationTool.csproj" -- FAILED.
3>BaseEditor modifies the values of properties: [ bStrictConformanceMode: False != True ]. This is not allowed, as BaseEditor has build products in common with UnrealEditor.
3>Remove the modified setting, change BaseEditor to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the BaseEditorTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.
3>
3>Result: Failed (OtherCompilationError)
3>Total execution time: 18.39 seconds
3>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_5.6\Engine\Build\BatchFiles\Build.bat" BaseEditor Win64 Development -Project="C:\Users\tanwe\Documents\Unreal Projects\Base 5.6\Base.uproject" -WaitMutex -FromMsBuild -architecture=x64" exited with code 6.
3>Done building project "Base.vcxproj" -- FAILED.
========== Build: 0 succeeded, 26 failed, 26 up-to-date, 1 skipped ==========
========== Build completed at 00:08 and took 19,960 seconds ==========

1 Like

Oh, i just consulted chatgpt about my error and it walked me throught the issues.

For anyone running into any Unreal related problem, just go to chatgpt and give it this prompt:

”You are an expert in C++, Unreal Engine, DotNet and all things related to Unreal Engine 5 environment.” 

And start giving it your build logs.

I solved this issue with a couple of steps:

  1. Nuget package update in VS2022.
    Since my first warning/error was about ImageMagick package vulnerability, i simply went to VS 2022 , Project > Manage NuGet packages> Installed > check show only vulnerable

This got rid of that problem.
2. Then I was getting these warnings that my source include order is still 5.1 and CPP standard not 20. So i fixed all that in my Project.target.cs file:

	//DefaultBuildSettings = BuildSettingsVersion.V2;
	//IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;

    DefaultBuildSettings = BuildSettingsVersion.V5;
    IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_6;
    CppStandard = CppStandardVersion.Cpp20;

My old values are commented out.

This got my solution building successfully,

Hello there @ali.quaker!

Checking your extensive log with my peers, this seems to be a cascading problem, with three main points. Let’s cover them one by one:

  1. The Magick.NET component is being flagged as vulnerable, most likely due a security check failure, or an outdated component:
error NU1902: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known moderate severity vulnerability
error NU1903: Warning As Error: Package 'Magick.NET-Q16-HDRI-AnyCPU' 14.7.0 has a known high severity vulnerability
  1. The previous conflict makes part of the Automation process fail, and certain .dlls are never created during the build:
error CS0006: Metadata file '...\AutomationUtils.Automation.dll' could not be found
error CS0006: Metadata file '...\VisionOS.Automation.dll' could not be found
  1. Finally, the whole editor collapses:
BaseEditor modifies the values of properties: [ bStrictConformanceMode: False != True ]. 
This is not allowed, as BaseEditor has build products in common with UnrealEditor.

In order to fix the issue, you should either bypass the NuGet security check, or update it’s components, following the steps from the thread below:

Alternatively, you can clear your project’s cache via the following steps:

  • Close Visual Studio and UE Editor completely

  • Delete these folders** from your project:

    • Binaries/
    • Intermediate/
    • Saved/
  • Right-click your .uproject file > “Generate Visual Studio project files”

  • Open the new .sln file and try building again


EDIT: I see you found a solution already, glad you were able to resolve the problem

1 Like

Many thanks for your reply.

I managed to update Magick.NET-Q16-HDRI-AnyCPU (and its dependency Magick.NET.Core) from 14.7.0 → 14.8.1, Using “Project>manage Nuget packages“ inside VS 2022.

That took care of that issue.

And as i said afterwards i still ran into a couple of problems with my project settings, since I was migrating from UE 5.1 to 5.6.

So i tired the build command from the commandline:

“C:\Program Files\Epic Games\UE_5.6\Engine\Build\BatchFiles\Build.bat” BaseEditor Win64 Development -Project=“C:\Unreal Projects\Base 5.6\Base.uproject” -WaitMutex -Verbose

And i got this error, which i fixed with the changes i posted in my previous comment, just before your message.

Warning: [Upgrade]Warning: [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:Warning: [Upgrade]     bLegacyParentIncludePaths = false               => Omits module parent folders from include paths to reduce compiler command line length. (Previously: true).Warning: [Upgrade]     CppStandard = CppStandardVersion.Default        => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).Warning: [Upgrade]     WindowsPlatform.bStrictConformanceMode = true   => Updates MSVC strict conformance mode to true (Previously: false).Warning: [Upgrade]     bValidateFormatStrings = true                   => Enables compile-time validation of strings+args passed to UE_LOG. (Previously: false).Warning: [Upgrade] Suppress this message by setting ‘DefaultBuildSettings = BuildSettingsVersion.V5;’ in BaseEditor.Target.cs, and explicitly overriding settings that differ from the new defaults.Warning: [Upgrade]Warning: [Upgrade]Warning: [Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:Warning: [Upgrade]     IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1Warning: [Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_6;’ in BaseEditor.Target.cs.Warning: [Upgrade] Alternatively you can set this to ‘EngineIncludeOrderVersion.Latest’ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.Warning: [Upgrade]Warning: [Upgrade]Warning: [Upgrade] The latest version of UE no longer supports CppStandardVersion.Cpp17 which may require code changes.Warning: [Upgrade] Suppress this message by setting ‘CppStandard = CppStandardVersion.Cpp20;’ in BaseEditor.Target.cs.Warning: [Upgrade]BaseEditor modifies the values of properties: [ bStrictConformanceMode: False != True ]. This is not allowed, as BaseEditor has build products in common with UnrealEditor.Remove the modified setting, change BaseEditor to use a unique build environment by setting ‘BuildEnvironment = TargetBuildEnvironment.Unique;’ in the BaseEditorTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.