# Visual studio 2019 (14.22.27905) must be installed to build this target

**URL:** <https://forums.unrealengine.com/t/visual-studio-2019-14-22-27905-must-be-installed-to-build-this-target/150754>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub, question\
**Created:** [September 16, 2020, 4:38pm UTC](https://forums.unrealengine.com/t/visual-studio-2019-14-22-27905-must-be-installed-to-build-this-target/150754 "2020-09-16T16:38:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastermikie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mastermikie](https://forums.unrealengine.com/u/mastermikie)\
**Post date:** [September 16, 2020, 4:38pm UTC](https://forums.unrealengine.com/t/visual-studio-2019-14-22-27905-must-be-installed-to-build-this-target/150754/1 "2020-09-16T16:38:13Z")

</div>

upon generateprojectfiles we are getting … visual studio 2019 (14.22.27905) must be installed to build this target.

We have been having this issue on 1 of 2 workstations.

one workstation was built on 2017 community with no fails and works fine.

The other system will not build with either vs2017 or vs2019. either version gets the error.

We have removed github, source and VS several times, doing clean installs of both versions. to no avail.

We read all the current forums about changing the buildconfiguration.xml, adding the 14.22 build tools and Command linker, etc.

We can build 4.23 source with either version of VS but neither origin/4.25 or release will build.

HELP!!!

---

<div class="post-metadata">

**Author:** ![mastermikie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mastermikie](https://forums.unrealengine.com/u/mastermikie)\
**Post date:** [September 17, 2020, 3:27am UTC](https://forums.unrealengine.com/t/visual-studio-2019-14-22-27905-must-be-installed-to-build-this-target/150754/2 "2020-09-17T03:27:57Z")

</div>

So it seems that we were close a few times. but finally hit the jackpot.  
there were 2 copies of the buildconfiguration.xml.

one was in the \unrealengine\engine\saved\unrealbuildtool folder.

and the other was in the AppData\Roaming\Unreal Engine\UnrealBuildTool folder.

the first one was listed as the correct place in several of the forums.  
the second was the one actually affecting the build. it was showing the correct 14.22.27905 but still gave the error message.  
simply removing the buildconfiguration.xml from the folder did the trick.  
~whew

---

<div class="post-metadata">

**Author:** ![edcolmar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@edcolmar](https://forums.unrealengine.com/u/edcolmar)\
**Post date:** [July 23, 2021, 5:51pm UTC](https://forums.unrealengine.com/t/visual-studio-2019-14-22-27905-must-be-installed-to-build-this-target/150754/3 "2021-07-23T17:51:07Z")

</div>

Thank you! Removing the buildconfiguration.xml file worked for me too!

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [January 16, 2023, 2:17am UTC](https://forums.unrealengine.com/t/visual-studio-2019-14-22-27905-must-be-installed-to-build-this-target/150754/4 "2023-01-16T02:17:13Z")

</div>

In my case removing the `buildconfiguration.xml` from `"\AppData\Roaming\Unreal Engine\UnrealBuildTool\"` wasn’t working, I had to edit it and make it like this:

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

```

---

<div class="post-metadata">

**Author:** ![CerebralFrost\_EH](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CerebralFrost\_EH](https://forums.unrealengine.com/u/CerebralFrost_EH)\
**Post date:** [January 22, 2023, 9:06pm UTC](https://forums.unrealengine.com/t/visual-studio-2019-14-22-27905-must-be-installed-to-build-this-target/150754/5 "2023-01-22T21:06:49Z")

</div>

Editing the buildconfiguration.xml as Ares9323 noted above worked for me as well (Using VS 2022)
