0

我的机器上安装了 VS 2010 和 VS 2015。我有一个全局级别的道具文件。

如果我提到

<PropertyGroup> <PlatformToolset Condition="'$(VisualStudioVersion)'=='14.0'">v140</PlatformToolset> <PlatformToolset Condition="'$(VisualStudioVersion)'=='10.0'">v100</PlatformToolset> </PropertyGroup>

使用 VS 2015 构建时出现以下错误。

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v140) is not installed或无效。请确保选择了受支持的 PlatformToolset 值。

但是如果在相应的 Vcxproj 中输入相同的条目,它会使用 VS 2015 成功构建。

任何一点都可以解决这个问题吗?

4

0 回答 0