Unable to generate VS project files for 5.1

I’m trying to upgrade a copy of a project from 5.0 to 5.1 and have hit the following problem. It’s a C++ / blueprint mixed project, and so it’s not a simple upgrade.

  • I opened the project in 5.1 and got it to upgrade a copy
  • It copies but does not build, so I go to the new folder, right click, and select ‘Generate Visual Studio project files’
  • It then fails with the following error
Running Q:/Games/UE_5.1/Engine/Build/BatchFiles/Build.bat  -projectfiles -project="Z:/Unreal Projects/UE5ProjectNameBackup - Copy/UE5ProjectName.uproject" -game -rocket -progress -log="Z:\Unreal Projects\UE5ProjectNameBackup - Copy/Saved/Logs/UnrealVersionSelector-2022.11.29-13.17.42.log"
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" -projectfiles -project="Z:/Unreal Projects/UE5ProjectNameBackup - Copy/UE5ProjectName.uproject" -game -rocket -progress -log="Z:\Unreal Projects\UE5ProjectNameBackup - Copy/Saved/Logs/UnrealVersionSelector-2022.11.29-13.17.42.log"
Log file: Z:\Unreal Projects\UE5ProjectNameBackup - Copy\Saved\Logs\UnrealVersionSelector-2022.11.29-13.17.42.log
Log file: C:\Users\Ed\AppData\Local\UnrealBuildTool\Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: Android, Linux, LinuxArm64.
See the log file for detailed information

Discovering modules, targets and source code for project...
Available x64 toolchains (4):
 * Z:\Visual Studio\VC\Tools\MSVC\14.29.30133
    (Family=14.29.30133, FamilyRank=0, Version=14.29.30146, Is64Bit=True, Preview=False, Architecture=x64, Error=False)
 * Z:\Visual Studio\VC\Tools\MSVC\14.34.31933
    (Family=14.34.31933, FamilyRank=2, Version=14.34.31933, Is64Bit=True, Preview=False, Architecture=x64, Error=False)
 * Z:\Visual Studio\VC\Tools\MSVC\14.32.31326
    (Family=14.32.31326, FamilyRank=2, Version=14.32.31335, Is64Bit=True, Preview=False, Architecture=x64, Error=False)
 * Z:\Visual Studio\VC\Tools\MSVC\14.31.31103
    (Family=14.31.31103, FamilyRank=2, Version=14.31.31107, Is64Bit=True, Preview=False, Architecture=x64, Error=False)
Unable to find valid 14.30.30705 toolchain for VisualStudio2022 x64

Can anyone shed some light on this, what I need to download / install?

Thanks

3 Likes

Found the solution. For anyone else having this problem:

  • Open the Visual Studio Installer
  • Select ‘modify’ next to Visual Studio 2022
  • Select ‘Individual components’
  • Search for ‘MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.30-17.0)’ and check the box
  • Click ‘Modify’ to download the package
  • Wait for it to install
  • Close Visual Studio and Unreal (if open)
  • Delete the .vs , Binaries , Intermediate , Saved folders and YourGame.sln
  • Right click on the uproject file and generate the visual studio files

…and it should all work

4 Likes

I had same error when switching to UE5.3 and solution provided by Godwhacker didn’t work.
To resolve the problem I had to remove one file - C:\Users\YOUR USERNAME\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml
Then re-generate project files. This way unreal created a new config file with proper settings.

5 Likes

Thanks for that, had the same problem here when creating a new UE 5.3 project.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.