Selecting Windows SDK version

  • 不知道这句话是哪个脚本输出的 :
  • Selecting Windows SDK version
  • 现在也没找到。
  • 发现cmake 改不了

CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION will contain the chosen Windows 10 SDK version.

  • 可能是被我? 在哪里写死了。。。

这位大神的笔记

  1. Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17763:

说明 SDK 版本和windows 版本不匹配, 需要重新下载对应版本的 SDK: https://developer.microsoft.com/zh-cn/windows/downloads/sdk-archive.

SDK版本对应

  • https://github.com/bjkwon/auxlab/blob/63c9d69bc8223d69f12ca9d5a24deab5353202d1/weird_VS_stuff_Windows_SDK_version.txt
In VS2017, Windows SDK Version needs to be specifically defined, such as

<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>

in either *.vcxproj file or *.props globally.

In my PC (running VS2017), Windows SDK version shows 4 choices:
10.0.16299.0
10.0.15063.0
10.0.17763.0
8.0

If it was set generically as 10.0, it gives the following error: 

error MSB8036: The Windows SDK version 10.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".

In another machin running VS2019, Windows SDK version shows 4 choices:
10.0 (latest installed version)
10.0.18362.0
8.1

Here, selecting 10.0 (latest installed version) works just fine. It appears as follows in *.vcxproj

<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>

[UPDATE ON 9:29 PM 1/15/2021]====================
In Visual Studio 2019 16.8.3, just delete the line of 
<WindowsTargetPlatformVersion>
will solve the problem.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值