当前位置: 首页 > 工具软件 > Windows8SDK > 使用案例 >

Selecting Windows SDK version

璩俊雅
2023-12-01

  • 不知道这句话是哪个脚本输出的 :
  • 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.
 类似资料:

相关阅读

相关文章

相关问答