C++ 什么是visual studio项目中的“平台工具集”设置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27517662/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is "Platform Toolset" setting in visual studio project
提问by Nayana Adassuriya
I have three doubts. Anyone there for help?
我有三个疑问。有人在那里寻求帮助吗?
- What is the "Platform Toolset" project setting in VS project
- Why such setting required
- What happen, if I change the setting (v110 to v100)
- 什么是VS项目中的“平台工具集”项目设置
- 为什么需要这样的设置
- 如果我更改设置(v110 到 v100)会发生什么
采纳答案by gmas80
It is an MSBuild property that controls the specific version of the platform toolset that you want to use.
它是一个 MSBuild 属性,用于控制您要使用的平台工具集的特定版本。
More info here: http://msdn.microsoft.com/en-us/library/windows/hardware/hh454232%28v=vs.85%29.aspx
更多信息:http: //msdn.microsoft.com/en-us/library/windows/hardware/hh454232%28v=vs.85%29.aspx
Most likely you want to use the last stable Windows SDK. You can check the toolset that you are using looking at your Visual Studio project file (.vcxproj), looking for this XML entry:
您很可能想使用最后一个稳定的 Windows SDK。您可以查看正在使用的工具集,查看 Visual Studio 项目文件 (.vcxproj),查找此 XML 条目:
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label="Configuration">
<ConfigurationType>Driver</ConfigurationType>
<DriverType>KMDF</DriverType>
<PlatformToolset>WindowsKernelModeDriver8.1</PlatformToolset>
</PropertyGroup>
回答by Nox
It is the version of all the tools used to compile and link your project.
它是用于编译和链接项目的所有工具的版本。
回答by Cypress
In Visual Studio, in Solution Explorer, open the shortcut menu for your project (not for your solution) and then choose Properties to open your project Property Pages dialog box.
In the Property Pages dialog box, open the Configuration drop-down list and then select All Configurations.
In the left pane of the dialog box, expand Configuration Properties and then select General.
In the right pane, select Platform Toolset and then select the toolset you want from the drop-down list. For example, if you have installed the Visual Studio 2010 toolset, select Visual Studio 2010 (v100) to use it for your project.
Choose the OK button.
在 Visual Studio 的解决方案资源管理器中,打开项目(不是解决方案)的快捷菜单,然后选择“属性”以打开项目“属性页”对话框。
在“属性页”对话框中,打开“配置”下拉列表,然后选择“所有配置”。
在对话框的左窗格中,展开配置属性,然后选择常规。
在右侧窗格中,选择平台工具集,然后从下拉列表中选择所需的工具集。例如,如果您已安装 Visual Studio 2010 工具集,请选择 Visual Studio 2010 (v100) 以将其用于您的项目。
选择确定按钮。
回答by YoavKlein
I Would refer to this link, i think it's explained better there: https://docs.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset?view=vs-2019
我会参考这个链接,我认为它在那里解释得更好:https: //docs.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset?视图=vs-2019