繁体   English   中英

Visual Studio 平台工具集与 Windows SDK

[英]Visual studio platform toolset vs Windows SDK

为什么 Microsoft Visual Studio 在同一项目中设置“Windows SDK”和“平台工具集”的配置属性不同? 我了解到每个 windows SDK 都提供新的/不同版本的平台工具集。 So how does it make sense to specify platform toolset of say Windows 10 SDK and at the same time setting the SDK option to say Windows 8.1 SDK in the same project?

非常混乱。

符合文档

For the Windows target platform, Windows SDK Version specifies the version of the Windows SDK that your project requires.

Platform Toolset允许项目以不同版本的 Visual C++ 库和编译器为目标。 Visual Studio C++ 项目可以针对 Visual Studio 安装的默认工具集,或几个以前版本的 Visual Studio 安装的工具集之一,包括创建可在 Windows XP 上运行的可执行文件的工具集。

“我了解到每个 windows SDK 都提供新/不同版本的平台工具集”

该平台工具集由 C++ 编译器 (cl.exe) 和 linker (link.exe) 以及 C/C++ 标准库组成。 Platform Toolset 与 Visual Studio 版本相关。 例如:

视觉工作室 2015:v140

视觉工作室 2017:v141

Visual Studio 2019:v142

Windows SDK 与 windows 版本相关。 例如:

Windows SDK(10.0.18362.0):Windows 10,版本1903

Windows SDK(8.1):Windows 7 或 Windows Vista 在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM