如何修复错误“Windows SDK version 8.1"没有找到? [英] How to fix the error "Windows SDK version 8.1" was not found?

查看:121
本文介绍了如何修复错误“Windows SDK version 8.1"没有找到?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近更新了 Visual Studio 2015,现在,当我尝试构建 任何 项目时,它总是失败并出现错误

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

严重性代码描述项目文件行抑制状态错误 MSB8036 未找到 Windows SDK 8.1 版.安装所需版本的 Windows SDK 或更改 SDK 版本项目属性页或通过右键单击解决方案并选择重定向解决方案".项目 D:\Program Files (x86)\visual studio2017\Common7\IDE\VC\VCTargets\Platforms\Win32\PlatformToolsets\v141\Toolset.targets 34

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

我按照它所说的重新定位了解决方案,即使重新定位已完成,问题仍然存在.因此,我决定安装 Visual Studio 2017,并且,瞧,它做了完全相同的事情.我也使用 Windows 7.

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?

推荐答案

我也遇到过这个问题.重新运行 Visual Studio 2017 安装程序,转到 'Individual Components' 并选择 Windows 8.1 SDK.返回到项目> 右键单击​​并重新定位以匹配所需的SDK,如下所示:

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:

这篇关于如何修复错误“Windows SDK version 8.1"没有找到?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆