Skip to content

VS: WindowsTargetPlatformVersion should allow the generic 10.0 value in VS2019

If you manually set a project's WindowsTargetPlatformVersion to 10.0 use the most recently installed SDK. However, when generating a project via CMake it will find the latest SDK at configuration time, and set it into the project settings, meaning that if you update your SDKs, you must re-generate before VS will use the new SDK.

I've tried both -DCMAKE_SYSTEM_VERSION=10.0 -DCMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION=10.0 but the target version always gets hardcoded in the generated project file.

The default setting for new projects is just "10.0", please see below.

image

Edited by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information