My project opens just fine in 5.0.3 but when I try to open a copy in 5.1.0 it says “The project could not be compiled. Would you like to open it in Visual Studio?” and then gives me this output:
The project could not be compiled. Would you like to open it in Visual Studio?
Running C:/Program Files/Epic Games/UE_5.1/Engine/Build/BatchFiles/Build.bat Development Win64 -Project=“C:/Users/Mitchell/Documents/GitHub/MiniAdvSourceControl/MiniAdventure 5.1/MiniAdventure.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Running UnrealBuildTool: dotnet “…..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Development Win64 -Project=“C:/Users/Mitchell/Documents/GitHub/MiniAdvSourceControl/MiniAdventure 5.1/MiniAdventure.uproject” -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: C:\Users\Mitchell\AppData\Local\UnrealBuildTool\Log.txt
Using ‘git status’ to determine working set for adaptive non-unity build (C:\Users\Mitchell\Documents\GitHub\MiniAdvSourceControl).
Creating makefile for MiniAdventureEditor (no existing makefile)
@progress push 5%
Parsing headers for MiniAdventureEditor
- Running Internal UnrealHeaderTool “C:\Users\Mitchell\Documents\GitHub\MiniAdvSourceControl\MiniAdventure 5.1\MiniAdventure.uproject” “C:\Users\Mitchell\Documents\GitHub\MiniAdvSourceControl\MiniAdventure 5.1\Intermediate\Build\Win64\MiniAdventureEditor\Development\MiniAdventureEditor.uhtmanifest” -WarningsAsErrors -installed*
Total of 4 written
Reflection code generated for MiniAdventureEditor in 0.8592182 seconds
@progress pop
Building MiniAdventureEditor…
Using Visual Studio 2022 14.33.31630 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
[Upgrade]
[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:
[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
[Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;’ in MiniAdventureEditor.Target.cs.
[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.
[Upgrade]
Determining max actions to execute in parallel (12 physical cores, 24 logical cores) - Executing up to 12 processes, one per physical core*
Building 10 actions with 10 processes…
[1/10] Resource Default.rc2
[2/10] Compile SharedPCH.Engine.ShadowErrors.InclOrderUnreal5_0.cpp
[3/10] Compile OcclusionAwarePlayerController.cpp
C:\Users\Mitchell\Documents\GitHub\MiniAdvSourceControl\MiniAdventure 5.1\Intermediate\Build\Win64\UnrealEditor\Inc\MiniAdventure\UHT\OcclusionAwarePlayerController.generated.h(13): fatal error C1189: #error: “OcclusionAwarePlayerController.generated.h already included, missing ‘#pragma once’ in OcclusionAwarePlayerController.h”
[4/10] Compile MyClass.cpp
[5/10] Compile MiniAdventure.cpp
[6/10] Compile MiniAdventure.init.gen.cpp
[7/10] Compile OcclusionAwarePlayerController.gen.cpp
[8/10] Link UnrealEditor-MiniAdventure.lib cancelled
[9/10] Link UnrealEditor-MiniAdventure.dll cancelled
[10/10] WriteMetadata MiniAdventureEditor.target cancelled