我无法将Windows SDK版本更改为10.0.17763.0,单击“应用”后它将重置为8.1。

时间:2019-04-28 08:15:22

标签: visual-studio-2017

我正在尝试编译mpc-hc。我收到许多类似cannot open include file "ctype.h"之类的错误,Visual Studio使用的标头来自8.1 sdk。我删除了除最后一个以外的所有sdk,但是现在我得到了:

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"

但是我不能告诉Visual Studio使用最新的SDK。它只是立即重置为sdk 8.1。

我尝试过此Can't change Windows SDK version in Visual Studio C++ project,现在已设置10.0.17763.0,但是在gui中仍然显示8.1。

我也尝试按照https://blogs.msdn.microsoft.com/willy-peter_schaub/2010/09/15/if-you-have-problems-with-tfs-or-visual-studio-flush-the-user-cache-or-not/所述在Visual Studio中删除一些设置,但是我没有在何处运行devenv /resetuserdata命令。

好的,所以我刚刚在C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\ucrt中添加了Include Directories,它似乎可以正常工作。现在,我必须手动将其添加到我拥有的每个项目中。

1 个答案:

答案 0 :(得分:0)

我也有同样的问题,仅适用于mpc-be:有一个名为platform.props的文件,用于查找环境。变种名为$(MPCBE_WINSDK_VER),如果找不到,它将WindowsTargetPlatformVersion元素设置为8.1。将此“ 8.1”更改为您喜欢的任何其他版本(例如“ 10.0”)。