MSBuild for VS 2015

2.3k Views Asked by At

I have VS 2010 and VS 2015 installed in my machine. I have a props file at global level.

If I mention the

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

It give the following error while build using 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 or invalid. Please make sure that a supported PlatformToolset value is selected.

But If make same entry in corresponding Vcxproj, it gets successfully build using VS 2015.

Can any one point why it is the issue ?

0

There are 0 best solutions below