Building VC++ Projects without Visual Studio

Sunday, July 14, 2013

Building VC++ projects (.vcxproj) without Visual Studio isn't as easy as building C# projects. Today a new build machine setup was failed on CL error: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(147): "CL.exe" exited with code -1073741515. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(297,5): Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. Solution 1. Install Windows SDK 7.1 on the build agent. 2. Open C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.props and add to the default PropertyGroup: <PlatformToolset>Windows7.1SDK</PlatformToolset It should look similar to: <PropertyGroup> <TargetExt /> ...
tags: , ,
no comments