Cannot find corecrt.h: $(UniversalCRT_IncludePath) is wrong

For Visual Studio 2017 I had to:

  1. Run Visual Studio Installer.
  2. Select Modify button.
  3. Go to "Individual Components" tab.
  4. Scroll down to "Compilers, build tools and runtimes".
  5. Tick "Windows Universal CRT SDK".
  6. Install.

Maybe there was something missing while installing the Visual Studio. You can check whether you forgot to choose the VC++ toolset.

  1. Control Panel -> All Control Panel Items -> Programs and Features -> Visual studio 2015
  2. Click change/uninstall
  3. Choose the VC++2015 toolset(x86,x64) and install.

For Visual Studio Community 2017 RC(15.0.26206.0), the name of optional tool is VC++ 2017 v141 toolset(x86,x64):

`VC++ 2017 v141 toolset(x86,x64)


I had the same problem. I tried the answers here. It didn't work 100%. What I found is that the VC++ 2015 toolset (x86, x64) is necessary for the 2017 Community Edition (which I am using now), but without adding any include or lib links.

Best regards.


you probably fixed this already, but if someone else comes along, i solved this by following the tip here.

Basically set the following system environment variables:

INCLUDE="C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt"
LIB="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64"

There is probably a much better best-practice way of doing it, but for just fixing it super-fast, this worked great.