简体   繁体   English

Visual Studio 平台工具集与 Windows SDK

[英]Visual studio platform toolset vs Windows SDK

Why does Microsoft visual studio has different configuration properties for settings 'Windows SDK' and 'platform toolset' in same project?为什么 Microsoft Visual Studio 在同一项目中设置“Windows SDK”和“平台工具集”的配置属性不同? I have the understanding that every windows SDK provides new/different version of platform toolset.我了解到每个 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? 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?

Very confusing.非常混乱。

Accoding to the Doc符合文档

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

Platform Toolset allows the project to target a different version of the Visual C++ libraries and compiler. Platform Toolset允许项目以不同版本的 Visual C++ 库和编译器为目标。 Visual Studio C++ projects can target either the default toolset installed by Visual Studio, or one of the toolsets installed by several previous versions of Visual Studio, including toolsets that create executables that can run on Windows XP. Visual Studio C++ 项目可以针对 Visual Studio 安装的默认工具集,或几个以前版本的 Visual Studio 安装的工具集之一,包括创建可在 Windows XP 上运行的可执行文件的工具集。

"I have the understanding that every windows SDK provides new/different version of platform toolset" “我了解到每个 windows SDK 都提供新/不同版本的平台工具集”

The platform toolset consists of the C++ compiler (cl.exe) and linker (link.exe), along with the C/C++ standard libraries.该平台工具集由 C++ 编译器 (cl.exe) 和 linker (link.exe) 以及 C/C++ 标准库组成。 Platform Toolset is related to visual studio version. Platform Toolset 与 Visual Studio 版本相关。 For example:例如:

Visual Studio 2015: v140视觉工作室 2015:v140

Visual Studio 2017: v141视觉工作室 2017:v141

Visual Studio 2019: v142 Visual Studio 2019:v142

Windows SDK is related to windows version. Windows SDK 与 windows 版本相关。 For example:例如:

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

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

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

相关问题 Visual Studio 希望使用错误的平台工具集进行构建 - Visual Studio wants to build with wrong platform toolset Visual Studio Platform工具集和运行时库 - Visual Studio Platform toolset and Runtime Library 什么是 Visual Studio 项目中的“平台工具集”设置 - What is "Platform Toolset" setting in visual studio project 在Visual Studio 2015中使用v90(VS2008)平台工具集 - Using v90 (VS2008) Platform Toolset in Visual Studio 2015 Visual Studio Installer 在 VS 2019 中安装的 LLVM 的平台工具集名称是什么? - What is the Platform Toolset name of LLVM installed by Visual Studio Installer in VS 2019? 使用VS 2010平台工具集时,Visual Studio 2013无法找到头文件 - Visual Studio 2013 can't located header files when using the VS 2010 platform toolset 如何将Visual Studio 2005的平台工具集添加到较新IDE版本的“Platform Toolset”列表中? - How can I add the platform toolset of Visual Studio 2005 into the `Platform Toolset` list of the newer IDE versions? 是否有关于哪个Windows SDK包含哪个平台工具集的参考? - Is there a reference on which Windows SDK contains which platform toolset? 使用Visual Studio 2012并使用较旧的平台工具集进行编译? - Use Visual Studio 2012 and compile with older platform toolset? 找不到 Visual Studio Platform 2015 工具集 ='v141' - Visual Studio Platform 2015 Toolset ='v141' cannot be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM