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
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:
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.
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:
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 ).
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.
Hello,
I’d like to reopen this thread because I still haven’t been able to get this solution to work. It’s been a while, but for personal reasons I had to put this on the back burner.
So I followed the steps, but I’m running into an error that’s beyond my expertise. Can you help me?
Hello there @herve1234
Sorry for the late reply, just saw your post.
Sadly I can’t tell why you are getting this error, could be many reasons, each environment is different.
But if I were you I would start over.
Make sure you have a backup of your original project saved somewhere.
Delete that project update attempt.
Make sure that your original project actually compiles and build fine (with VS too not just ue editor).
Follow the steps again to try and update the project, it should work.
make sure you are using vs 2022 too, newer versions “might” not be fully compatible/supported by ue5.7.