# Is it OK to use Visual Studio 2019 to compile UE4.27?

**URL:** <https://forums.unrealengine.com/t/is-it-ok-to-use-visual-studio-2019-to-compile-ue4-27/247534>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub\
**Created:** [August 27, 2021, 12:44am UTC](https://forums.unrealengine.com/t/is-it-ok-to-use-visual-studio-2019-to-compile-ue4-27/247534 "2021-08-27T00:44:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpu2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gpu2015](https://forums.unrealengine.com/u/gpu2015)\
**Post date:** [August 27, 2021, 12:44am UTC](https://forums.unrealengine.com/t/is-it-ok-to-use-visual-studio-2019-to-compile-ue4-27/247534/1 "2021-08-27T00:44:03Z")

</div>

is it OK to use Visual Studio 2019 to compile UE4.27 ?

---

<div class="post-metadata">

**Author:** ![KurtCobien](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kurtcobien/32/957039_2.png) [@KurtCobien](https://forums.unrealengine.com/u/KurtCobien)\
**Post date:** [August 27, 2021, 8:03am UTC](https://forums.unrealengine.com/t/is-it-ok-to-use-visual-studio-2019-to-compile-ue4-27/247534/2 "2021-08-27T08:03:14Z")

</div>

Compiled mostly without problems (something related to chaos tests).

---

<div class="post-metadata">

**Author:** ![gpu2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gpu2015](https://forums.unrealengine.com/u/gpu2015)\
**Post date:** [August 27, 2021, 8:43am UTC](https://forums.unrealengine.com/t/is-it-ok-to-use-visual-studio-2019-to-compile-ue4-27/247534/3 "2021-08-27T08:43:39Z")

</div>

> [@Branch 4.27](https://forums.unrealengine.com/t/branch-4-27/230021):
>
> Get Error compiling from source UE 4.27 C++ 2017 any ideas how to fix this? Has anyone managed to compile this build? G :\UnrealEngine-\>G:\UnrealEngine-4.27\Engine\Source\ThirdParty\Windows\DirectX\include\d3d12.h(430): error C4668: ‘WINAPI\_PARTITION\_GAMES’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’\Engine\Source\ThirdParty\Windows\DirectX\include\d3d12.h(430): error C4668: ‘WINAPI\_PARTITION\_GAMES’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#…

---

<div class="post-metadata">

**Author:** ![gpu2015](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gpu2015](https://forums.unrealengine.com/u/gpu2015)\
**Post date:** [August 27, 2021, 8:44am UTC](https://forums.unrealengine.com/t/is-it-ok-to-use-visual-studio-2019-to-compile-ue4-27/247534/4 "2021-08-27T08:44:34Z")

</div>

both vs2017 and vs2019 have this error while compiling ue4.27.0

---

<div class="post-metadata">

**Author:** ![JoeBlo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoeBlo](https://forums.unrealengine.com/u/JoeBlo)\
**Post date:** [September 10, 2021, 11:07pm UTC](https://forums.unrealengine.com/t/is-it-ok-to-use-visual-studio-2019-to-compile-ue4-27/247534/5 "2021-09-10T23:07:10Z")

</div>

The fix for me was to comment out the WINAPI\_PARTITION\_GAMES part, then build.

Just keep the first part, close the parentheses, then // | WINAPI\_PARTITION\_GAMES)
