“could not be compiled. Try rebuilding from source manually.”

I have the same issue and tryed the solution with building via VS Code. I got these warnings and error message:

Output:

Build started at 13:37...
1>------ Build started: Project: Shooter2, Configuration: Development_Editor x64 ------
1>Using bundled DotNet SDK version: 6.0.302
1>Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" Shooter2Editor Win64 Development -Project="D:\Shooter2BackupNew\Shooter2\Shooter2.uproject" -WaitMutex -FromMsBuild -architecture=x64
1>Log file: C:\Users\voel_mn\AppData\Local\UnrealBuildTool\Log.txt
1>Using 'git status' to determine working set for adaptive non-unity build (D:\Shooter2BackupNew\Shooter2).
1>Creating makefile for Shooter2Editor (no existing makefile)
1>EXEC : warning : [Upgrade]
1>EXEC : warning : [Upgrade] Using backward-compatible build settings. The latest version of UE sets the following values by default, which may require code changes:
1>EXEC : warning : [Upgrade]     bLegacyParentIncludePaths = false               => Omits module parent folders from include paths to reduce compiler command line length. (Previously: true).
1>EXEC : warning : [Upgrade]     CppStandard = CppStandardVersion.Default        => Updates C++ Standard to C++20 (Previously: CppStandardVersion.Cpp17).
1>EXEC : warning : [Upgrade]     WindowsPlatform.bStrictConformanceMode = true   => Updates MSVC strict conformance mode to true (Previously: false).
1>EXEC : warning : [Upgrade]     bValidateFormatStrings = true                   => Enables compile-time validation of strings+args passed to UE_LOG. (Previously: false).
1>EXEC : warning : [Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V5;' in Shooter2Editor.Target.cs, and explicitly overriding settings that differ from the new defaults.
1>EXEC : warning : [Upgrade]
1>EXEC : warning : [Upgrade]
1>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:
1>EXEC : warning : [Upgrade]     IncludeOrderVersion = EngineIncludeOrderVersion.Oldest
1>EXEC : warning : [Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Latest;' in Shooter2Editor.Target.cs.
1>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.
1>EXEC : warning : [Upgrade]
1>Total execution time: 13.66 seconds
1>Shooter2Editor modifies the values of properties: [ bStrictConformanceMode ]. This is not allowed, as Shooter2Editor has build products in common with UnrealEditor.
1>Remove the modified setting, change Shooter2Editor to use a unique build environment by setting 'BuildEnvironment = TargetBuildEnvironment.Unique;' in the Shooter2EditorTarget constructor, or set bOverrideBuildEnvironment = true to force this setting on.
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command "D:\UE_5.4\Engine\Build\BatchFiles\Build.bat Shooter2Editor Win64 Development -Project="D:\Shooter2BackupNew\Shooter2\Shooter2.uproject" -WaitMutex -FromMsBuild -architecture=x64" exited with code 6.
1>Done building project "Shooter2.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 11 up-to-date, 0 skipped ==========
========== Build completed at 13:37 and took 14,208 seconds ==========

Ok I have no idea if this was the right way, but I first generated visual studio project files
image

and now I have additional errors when building:

in another forum thread I found a suggestion to install SDK NET 7.0 and NET 6.0 (I don’t even know what that’s for).
I tried building again, same errors.

1 Day Later:
I gave up on this approach. But what worked for me was creating a blank 5.4.2 Project and migrating everything over from my 5.1.1. Project.

1 Like