无法构建C ++项目:" Windows SDK 8.1"找不到,但是已安装. [英] Can't build C++ project: "Windows SDK 8.1" not found, however, it is installed.

查看:99
本文介绍了无法构建C ++项目:" Windows SDK 8.1"找不到,但是已安装.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试编译琐碎的"hello world"时收到以下错误在C ++中:
"MSB8036".找不到Windows SDK版本8.1.安装所需版本的Windows SDK或在项目属性页面中更改SDK版本,或者通过右键单击解决方案并选择重新定位解决方案". C:\ Program档案 (x86)\ MSBuild \ Microsoft.Cpp \ v4.0 \ V140 \ Platforms \ Win32 \ PlatformToolsets \ v140 \ Toolset.targets.

I'm receiving following error trying to compile trivial "hello world" in C++:
"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". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\Win32\PlatformToolsets\v140\Toolset.targets.

但是,我已经从此处安装Windows SDK 8.1:https://developer.microsoft.com/ru-ru/windows/downloads/windows-8-1-sdk.启动"sdksetup.exe";从下载的"StandaloneSDK"中获取给出此计算机上安装的功能 是最新的".

我以为我的Visual Studio安装可能会损坏某些东西,因此我已经尝试先对其进行修复(无结果),然后尝试删除并重新安装(无结果).然后我认为SDK安装可能存在一些问题,因此我删除了 VS和所有SDK,然后重新安装所有内容-仍然没有结果.

很有可能是带有路径和/或环境变量的东西坏了,但是我不知道如何在Windows中跟踪和调试这些问题.

However, I have installed Windows SDK 8.1 from here: https://developer.microsoft.com/ru-ru/windows/downloads/windows-8-1-sdk. Launching "sdksetup.exe" from downloaded "StandaloneSDK" gives a "The features installed on this computer are up-to-date".

I thought that something may be broken with my Visual Studio installation, so I've trier to repair it first (no results), then tried to remove and install again (no results). Then I thought that it may be some issues with SDK installations, so I've removed VS and all SDK's, and installed everything again - still no results.

Most probably, something with paths and/or environment variables is broken, but I don't know how to trace and debug those issues in Windows.

我正在使用Microsoft Visual Studio Enterprise 2015版本. 14.0.25431 Update 3,Windows 10.

I'm using Microsoft Visual Studio Enterprise 2015, ver. 14.0.25431 Update 3, Windows 10.

推荐答案

您好

Hi Dmitry Savvinov,

这是一个类似的问题和相关的解决方案:

Here is a similar issue and related solution:

  1. 在环境变量"PATH"中指出MSBuild.exe位置.变量.

  1. Pointing out MSBuild.exe location in environment variables "PATH" variable.

http://stackoverflow.com/questions/38244275/react-native-project -init-error-windows

最诚挚的问候,

吴可乐


这篇关于无法构建C ++项目:" Windows SDK 8.1"找不到,但是已安装.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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