Project update with UE 5.7 Impossible

Hello, I wanted to open a UE 5.6 project in 5.7, but I get this compilation error message. I can open other projects, but not this one (the most important one!).
Thank you very much for your help.

The project could not be compiled. Would you like to open it in Visual Studio?

Running C:/Program Files/Epic Games/UE_5.7/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“G:/LIBERIA 5.5 5.6 5.7/LIBERIA.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Using bundled DotNet SDK version: 8.0.412 win-x64
Running UnrealBuildTool: dotnet “…\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Development Win64 -Project=“G:/LIBERIA 5.5 5.6 5.7/LIBERIA.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\Utilisateur\AppData\Local\UnrealBuildTool\Log.txt
Creating makefile for VaubanEditor (no existing makefile)
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] WindowsPlatform.bStrictInlineConformance = true => Updates MSVC inline conformance (Remove unreferenced COMDAT) to true (Previously: false).
Warning: [Upgrade] UndefinedIdentifierWarningLevel = WarningLevel.Error => Enables compile-time validation of undefined identifiers in conditional expressions. (Previously: Off).
Warning: [Upgrade] Suppress this message by setting ‘DefaultBuildSettings = BuildSettingsVersion.V6;’ in VaubanEditor.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_4
Warning: [Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_7;’ in VaubanEditor.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]
Wrote partial receipt to G:\LIBERIA 5.5 5.6 5.7\Binaries\Win64\VaubanEditor.target
VaubanEditor modifies the values of properties: [ UndefinedIdentifierWarningLevel: Off != Error ]. This is not allowed, as VaubanEditor has build products in common with UnrealEditor.
Remove the modified setting, change VaubanEditor to use a unique build environment by setting ‘BuildEnvironment = TargetBuildEnvironment.Unique;’ in the VaubanEditorTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.

Result: Failed (OtherCompilationError)
Total execution time: 0.93 seconds

I would like to add some information. When I created the UE5.7 project and tried to open it, I got this message:

The last build used an outdated BuildSettingsVersion, or the target still requires upgrading.

Please upgrade VaubanEditor.Target.cs:

Update the build settings version (Installed Engine Build & Source Build):
DefaultBuildSettings = BuildSettingsVersion.V6;

OR

Declare a unique build environment (Source Build only):
BuildEnvironment = TargetBuildEnvironment.Unique;

If you have already updated the target, would you like to rebuild & open the project?

Hello there @herve1234!

Checking with my peers, what you got here looks like a migration/update conflict, as the engine is clashing with your project trying to turn off certain warnings (like UndefinedIdentifierWarningLevel: Off). This became a bit more strict in 5.7, and the migrated settings from 5.6 are most likely generating the error.

VaubanEditor modifies the values of properties: [ UndefinedIdentifierWarningLevel: Off != Error ]. This is not allowed, as VaubanEditor has build products in common with UnrealEditor.

In order to fix the issue, go to your main directory, open your .Target.cs file, and add the following to your logic:

DefaultBuildSettings = BuildSettingsVersion.V6;
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_7;
ExtraModuleNames.Add(“Vauban”);

After the change, close UE and VS, and perform a cache clear to purge any old data from 5.6. To do so, delete folders Binaries, Intermediate, and DerivedDataCache. After that, locate your .uproject file, right click it, and select “Generate Visual Studio project files”. Allow your project to rebuild, then test the compilation again.

Hello :slight_smile:

Thank you very much for your reply.
I followed your instructions and pasted the line at the end (see screenshot).
I have two Target.cs files and I used Vauban.Target.cs.
When I ran ‘Generate Visual Studio project files’, I got the following error message:

Running C:/Program Files/Epic Games/UE_5.7/Engine/Build/BatchFiles/Build.bat -projectfiles -project=“G:/LIBERIA 5.5 5.6 5.7/LIBERIA.uproject” -game -rocket -progress -log=“G:\LIBERIA 5.5 5.6 5.7/Saved/Logs/UnrealVersionSelector-2026.02.16-16.56.08.log”
Using bundled DotNet SDK version: 8.0.412 win-x64
Running UnrealBuildTool: dotnet “…\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -projectfiles -project=“G:/LIBERIA 5.5 5.6 5.7/LIBERIA.uproject” -game -rocket -progress -log=“G:\LIBERIA 5.5 5.6 5.7/Saved/Logs/UnrealVersionSelector-2026.02.16-16.56.08.log”
Log file: G:\LIBERIA 5.5 5.6 5.7\Saved\Logs\UnrealVersionSelector-2026.02.16-16.56.08.log

Generating VisualStudio project files:
Discovering modules, targets and source code for project…
Adding projects for all targets…
G:\LIBERIA 5.5 5.6 5.7\Source\Vauban.Target.cs(16,1): error CS8803: Top-level statements must precede namespace and type declarations.
G:\LIBERIA 5.5 5.6 5.7\Source\Vauban.Target.cs(18,22): error CS1056: Unexpected character ‘?’
G:\LIBERIA 5.5 5.6 5.7\Source\Vauban.Target.cs(18,29): error CS1056: Unexpected character ‘?’
Adding projects for all targets took 3.04s
Unhandled 1 aggregate exceptions
Unhandled exception: DirectoryNotFoundException: Could not find a part of the path ‘G:\LIBERIA 5.5 5.6 5.7\Intermediate\Build\BuildRules\LIBERIAModuleRulesManifest.json’.
at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode)
at UnrealBuildTool.DynamicCompilation.CompileAndLoadAssemblyAsync(FileReference OutputAssemblyPath, IEnumerable1 SourceFileNames, ILogger Logger, IEnumerable1 ReferencedAssembies, IEnumerable`1 PreprocessorDefines, Boolean DoNotCompile, Boolean ForceCompile, Boolean TreatWarningsAsErrors

If you still having the issue or if anyone having the same issue.
What worked for me was the exact following steps:
1- Backup your whole project folder.
2- Run the UE editor (the new version you upgraded to 5.7 in this case).
3- From there, pick the project you are trying to upgrade and click open.
4- You will get a message about the version and an option to “open copy”, select the “open copy” option.
5- The editor will create a copy of the project but it will not compile and it will ask you if you want to open the project in VS, open it.
6- To be able to compile you need to edit 2 files “ProjectName.Target.cs” AND “ProjectNameEditor.Target.cs” by replacing those 2 lines (basically just the numbers from 5 to 6 and from 5_6 to 5_7 ).

DefaultBuildSettings = BuildSettingsVersion.V6;
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_7;

Save and try to build, if you get any errors, delete the Saved , Binaries, Intermediate and DerivedDataCache folders and try again, it should build just fine, just as @brs-sebascova mentioned.