# Unreal Engine not using Visual Studio 2019 to generate project files

**URL:** <https://forums.unrealengine.com/t/unreal-engine-not-using-visual-studio-2019-to-generate-project-files/458527>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-build-tool, unreal-engine, Visual-Studio, question\
**Created:** [November 17, 2019, 2:45pm UTC](https://forums.unrealengine.com/t/unreal-engine-not-using-visual-studio-2019-to-generate-project-files/458527 "2019-11-17T14:45:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SupDeity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupDeity](https://forums.unrealengine.com/u/SupDeity)\
**Post date:** [November 17, 2019, 2:45pm UTC](https://forums.unrealengine.com/t/unreal-engine-not-using-visual-studio-2019-to-generate-project-files/458527/1 "2019-11-17T14:45:30Z")

</div>

So i have the Hotfix Version of UE4.23 (4.23.1) And i am unable to generate project files using the unrealbuild tool using VS2019. i know that VS2019 is supported, so why is this happening?. i deleted VS2017 a little while back and i definitely am not gonna be downloading it back so please dont give that suggestion. I tried adding this:

[/Script/WindowsTargetPlatform.WindowsTargetSettings]

Compiler=VisualStudio2019

to the defaultengine.ini and it didnt work. also tried using this cmdline → -2019 but UEBuildTool Still doesnt care about it. just keeps saying it needs VS2017.

---

<div class="post-metadata">

**Author:** ![BenjaFriend](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BenjaFriend](https://forums.unrealengine.com/u/BenjaFriend)\
**Post date:** [November 17, 2019, 8:17pm UTC](https://forums.unrealengine.com/t/unreal-engine-not-using-visual-studio-2019-to-generate-project-files/458527/2 "2019-11-17T20:17:19Z")

</div>

Have you tried changing it in your Unreal Editor Preferences?

 ![292540-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/5/5f5c0a0cd87abeeb0c48b3469e50b78f7ad2b16e.png)

And I also believe there is a setting in the `BuildConfiguration.xml`. See the [docs](https://docs.unrealengine.com/en-US/Programming/BuildTools/UnrealBuildTool/BuildConfiguration/index.html) at `VCProjectFileGenerator > Version`. I think that you set the target platform for Windows, not your source code editor for UBT

---

<div class="post-metadata">

**Author:** ![SupDeity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupDeity](https://forums.unrealengine.com/u/SupDeity)\
**Post date:** [November 18, 2019, 2:53pm UTC](https://forums.unrealengine.com/t/unreal-engine-not-using-visual-studio-2019-to-generate-project-files/458527/3 "2019-11-18T14:53:46Z")

</div>

1-) yes i had tried changing it in the unreal editor preferences. but after i added a class( C++) i cant use the editor anymore anyway since it hasnt compiled. i might be able to solve that by deleting the source files.  
2-) i will take a look at the buildconfig

---

<div class="post-metadata">

**Author:** ![SupDeity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupDeity](https://forums.unrealengine.com/u/SupDeity)\
**Post date:** [November 18, 2019, 3:06pm UTC](https://forums.unrealengine.com/t/unreal-engine-not-using-visual-studio-2019-to-generate-project-files/458527/4 "2019-11-18T15:06:04Z")

</div>

update: Apparently Unreal Doesnt care what i put there. It is indeed checking in there since it gave me syntax errors but i put the values correctly but it isnt using those.

update 2: had to use the Window’s Platform’s Compiler Roots as well. and then it worked

---

<div class="post-metadata">

**Author:** ![SupDeity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupDeity](https://forums.unrealengine.com/u/SupDeity)\
**Post date:** [November 18, 2019, 3:14pm UTC](https://forums.unrealengine.com/t/unreal-engine-not-using-visual-studio-2019-to-generate-project-files/458527/5 "2019-11-18T15:14:20Z")

</div>

here is how to fix it:

override the BuildConfiguration.xml in %appdata%\Unreal Engine\UnrealBuildTool\ with this:

```
<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
    <WindowsPlatform>
        <CompilerVersion>14.22.27905</CompilerVersion>
        <Compiler>VisualStudio2019</Compiler>
    </WindowsPlatform>
    <VCProjectFileGenerator>
        <Version>VisualStudio2019</Version>
    </VCProjectFileGenerator>
</Configuration>
```
