Download

Don`t compile from source. fatal error C1083: Cannot open include file: 'metahost.h'

I have a problem building the engine from source.
VS 2019 UE 4.22, and 4.23

A file ‘metahost.h’ in the folder C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\Include\um exists.

Visual Studio SDK 4.7.2 is installed.

In the project settings, include paths are correct - C:\Program Files (x86)\Windows Kits\NETFXSDK\4.7.2\Include\um.

I tried to reinstall SDK - it did not help. Updated Studio to the latest version - it did not help too.

Resolved. Should use 4.6.2 SDK ONLY. I tried to use 4.7.2 and 4.8 and had a problem. But it`s hardcoded inside of UE unrealbuildtool Engine\Source\Programs\UnrealBuildTool\Platform\Windows\UEBuildWindows.cs
“TryReadInstallDirRegistryKey32(“Microsoft\Microsoft SDKs\NETFXSDK\4.6.2”, “KitsInstallationFolder”, out OutInstallDir);”
So, in next versions of UE maybe SDK version will change to another. Check it by yourself.