# Unable to generate VS project files for 5.1

**URL:** <https://forums.unrealengine.com/t/unable-to-generate-vs-project-files-for-5-1/717750>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, CPP, question\
**Created:** [November 29, 2022, 1:24pm UTC](https://forums.unrealengine.com/t/unable-to-generate-vs-project-files-for-5-1/717750 "2022-11-29T13:24:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godwhacker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godwhacker](https://forums.unrealengine.com/u/Godwhacker)\
**Post date:** [November 29, 2022, 1:24pm UTC](https://forums.unrealengine.com/t/unable-to-generate-vs-project-files-for-5-1/717750/1 "2022-11-29T13:24:44Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![Godwhacker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godwhacker](https://forums.unrealengine.com/u/Godwhacker)\
**Post date:** [November 29, 2022, 5:57pm UTC](https://forums.unrealengine.com/t/unable-to-generate-vs-project-files-for-5-1/717750/2 "2022-11-29T17:57:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![UpsideDown83](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UpsideDown83](https://forums.unrealengine.com/u/UpsideDown83)\
**Post date:** [September 7, 2023, 12:11am UTC](https://forums.unrealengine.com/t/unable-to-generate-vs-project-files-for-5-1/717750/3 "2023-09-07T00:11:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Godwhacker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Godwhacker](https://forums.unrealengine.com/u/Godwhacker)\
**Post date:** [September 11, 2023, 4:34pm UTC](https://forums.unrealengine.com/t/unable-to-generate-vs-project-files-for-5-1/717750/4 "2023-09-11T16:34:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 11, 2023, 4:35pm UTC](https://forums.unrealengine.com/t/unable-to-generate-vs-project-files-for-5-1/717750/5 "2023-10-11T16:35:11Z")

</div>

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