Hi Dan, thanks for the reply.
I’ve gone through the same process today. I must have misstepped yesterday because the compilation works today. However, I still get the warning.
These are the steps I’ve followed today:
- Open the Microsoft Visual Studio Installer in Installed Apps
- Say ‘Yes’ to ‘Do you want to allow changes?’
- Choose Modify
- Select Individual Components
- Select 'MSVCv143 - VS 2022 x64/x86 build tools(v14.38 - 17.8)
- Select Modify
- Go to UE → Tools → Refresh Visual Studio Code Project
- In UE, select recompile on the fly
Log output contains
Running D:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat -Target=“ObstacleAssaultEditor Win64 Development -Project=”“D:/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject”"" -LiveCoding -LiveCodingModules=“D:/Program Files/Epic Games/UE_5.4/Engine/Intermediate/LiveCodingModules.json” -LiveCodingManifest=“D:/Program Files/Epic Games/UE_5.4/Engine/Intermediate/LiveCoding.json” -WaitMutex -LiveCodingLimit=100
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet “…\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” -Target=“ObstacleAssaultEditor Win64 Development -Project=”“D:/Unreal Projects/ObstacleAssault/ObstacleAssault.uproject”"" -LiveCoding -LiveCodingModules=“D:/Program Files/Epic Games/UE_5.4/Engine/Intermediate/LiveCodingModules.json” -LiveCodingManifest=“D:/Program Files/Epic Games/UE_5.4/Engine/Intermediate/LiveCoding.json” -WaitMutex -LiveCodingLimit=100
Log file: C:\Users\marti\AppData\Local\UnrealBuildTool\Log.txt
Building ObstacleAssaultEditor…
Using Visual Studio 2022 14.40.33811 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Warning: Visual Studio 2022 compiler is not a preferred version
I presume I have to tell UE to change the VSC compiler it’s using but I don’t know how.