gpt4 book ai didi

c++ - msbuild 自动替换构建工具

转载 作者:行者123 更新时间:2023-11-28 05:11:54 24 4
gpt4 key购买 nike

我正在使用 VS2012 构建一个用 VS2013 创建的包,问题是该项目使用构建工具 v110_xp,而我只有版本 v110

在 msbuild 期间,它会提示,

  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform
.targets(44,5): error MSB8020: The builds tools for v110_xp (Platform Toolset =
'v110_xp') cannot be found. To build using the v110_xp build tools, either cli
ck the Project menu or right-click the solution, and then select "Update VC++ P
rojects...". Install v110_xp to build using the v110_xp build tools. [c:\\xxx.vcxproj]

当然,在VS IDE中,我可以为每个项目编辑版本。

但我想知道是否有一种方法可以忽略缺少的工具,让 msbuild 使用任何可用的工具。

最佳答案

您可以像这样使用 msbuild 命令行更改使用的平台工具集:

msbuild.exe /p:PlatformToolset=v110 [...]

关于c++ - msbuild 自动替换构建工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43338526/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com