# 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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://forums.unrealengine.com/t/unable-to-generate-vs-project-files-for-5-1/717750)._
