我已经将我的C++/CX项目重定向到我可以使用的最新Windows版本(10.0.10586)。然而,在参考文献中,Windows.Foundation.UniversalApiContract版本显示的是自愿2.0.0.0,最新版本是10.0.14393.0中引入的3.0.0.0。我需要使用3.0.0.0中的特性,但我不知道如何使用它。我已经查看了.vcxproj和anything,我找不到任何相关的东西。我在GUI中也找不到任何东西。如何更改相应的版本?
发布于 2017-01-16 00:57:05
可以在项目属性中设置目标版本。
在Properties编辑器中,它位于config选项卡的Target Platform版本中:

在vcproj中,是WindowsTargetPlatformVersion:
<WindowsTargetPlatformVersion>10.0.14393.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.10586.0</WindowsTargetPlatformMinVersion>您需要从https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk安装14393 SDK。如果Visual认为10586是最新的,那么您可能没有更新的SDK。您还应该确保您拥有的最新更新(2015年更新3或2017年RC)
https://stackoverflow.com/questions/41667992
复制相似问题