"VisualStudioUnsupported x64 must be installed" trying to update a project from 5.3.2 to 5.4.1

Ares9323
Wed, 01 May 2024 17:18:25 +0000
C++

Hi! I’ve just downloaded 5.4.1 and I’m receiving this strange error if I click “Switch Unreal Engine Version” in the right click menu:

Running C:/Program Files/Epic Games/UE_5.4/Engine/Build/BatchFiles/Build.bat  -projectfiles -project="D:/_Unreal/UnrealProjects/HOWL/HOWL.uproject" -game -rocket -progress -log="D:\_Unreal\UnrealProjects\HOWL/Saved/Logs/UnrealVersionSelector-2024.05.01-19.07.36.log"
Using bundled DotNet SDK version: 6.0.302
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="D:/_Unreal/UnrealProjects/HOWL/HOWL.uproject" -game -rocket -progress -log="D:\_Unreal\UnrealProjects\HOWL/Saved/Logs/UnrealVersionSelector-2024.05.01-19.07.36.log"
Log file: D:\_Unreal\UnrealProjects\HOWL\Saved\Logs\UnrealVersionSelector-2024.05.01-19.07.36.log
Log file: C:\Users\Ares\AppData\Local\UnrealBuildTool\Log_GPF.txt

Generating VisualStudio project files:
Discovering modules, targets and source code for project...
Total execution time: 1.95 seconds
VisualStudioUnsupported x64 must be installed in order to build this target.

I’ve tried to delete all the unnecessary folders inside the project and rebuild it, change the engine association manually in the .uproject file but it just doesn’t work.
Should I install a specific version of visual studio?
I’ve also had issues with another UE5.4 project, it was compiling perfectly fine in 5.2 and 5.4 but in 5.4 I get this strange error saying: error C4668: 'ENGINE_MAJOR_VERSION' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif', since “ENGINE_MAJOR_VERSION” should be a valid macro, I guess there is something wrong with my installation or with the latest unreal build tool ('cause I have no issues with previous engine versions)

Thank you in advance!

8 posts - 5 participants