In order to be able to use directly .vcxproj files provided in installer on Windows 10 you need to be sure to have the correct Windows 10 SDK installed. The requested version is Windows 10 SDK 10.0.16299.0. If it is not installed, you will have an error message saying, when compiling them, saying “error MSB8036: The Windows SDK version 10.0.16299.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting “Retarget solution“.
To avoid the problem, follow these steps
- Run Visual Studio 2017 installer (which can be found in C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe if you made a default installation)
- Click on modify
- Select 16299 SDK under SDK/framework in individual components tab of the installer (see picture below)
If you don't want, or cannot, install this version of the SDK, the easiest solution is then to run CMake to generate .vcxproj files that will suit your configuration. To do this, follow steps described on this page.