Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix the error "Windows SDK version 8.1" was not found?

I recently updated visual studio 2015 and now, when i try to build any project it always fails and i get the error

Severity Code Description Project File Line Suppression State Error MSB8036 The Windows SDK version 8.1 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". Proj D:\Program Files (x86)\visual studio 2017\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141\Toolset.targets 34

I retargeted the solution as it said, and the problem persisted, even though the retargetting was completed.I decided to install visual studio 2017 because of this, and, lo and behold, it did the exact same thing.I'm also using windows 7.

What is the problem and how can i fix it?

like image 846
no one Avatar asked Apr 30 '17 09:04

no one


People also ask

How do you check if Windows 8.1 SDK is installed?

Look under Control Panel / Uninstall a program. "Windows Software Development Kit - Windows X.X.X.X" (where X.X.X.X is the version). It will be listed amongst all the other software you have installed on your machine.

How do I enable Windows SDK?

The Windows SDK is installed as part of the Desktop development with C++ workload in the Visual Studio Installer. A standalone version is available at Windows SDK. Open the shortcut menu for the project node, and choose Retarget projects. (In earlier versions of Visual Studio, choose Retarget SDK Version.)

How do I find Windows SDK?

By default, the Windows 10 SDK is installed into the "C:\Program Files (x86)\Windows Kits\10" folder.


2 Answers

I faced this problem too. Re-ran the Visual Studio 2017 Installer, go to 'Individual Components' and select Windows 8.1 SDK. Go back to to the project > Right click and Re-target to match the SDK required as shown below:enter image description here

like image 174
Felix Too Avatar answered Oct 17 '22 05:10

Felix Too


I installed the 8.1 SDK's version:

https://developer.microsoft.com/en-us/windows/downloads/sdk-archive

It used 1GB (a little more) in the installation.


Update October, 9 (2020). There's a https error: the sdksetup link is https://go.microsoft.com/fwlink/p/?LinkId=323507

"Save link as" should help.

like image 37
hestellezg Avatar answered Oct 17 '22 04:10

hestellezg