I have a project that was building fine in VS 2008, and then we installed and started using TFS Build, and then we upgraded to TFS 2010. Everything was still fine and build
An improved alternative to BlueMonkMN is to add
<PropertyGroup>
<VCTargetsPath Condition="'$(VCTargetsPath)' == ''">[path_to_the_fileset_listed]</VCTargetsPath>
</PropertyGroup>
as a level 1 child near the top of the vcxproj.
The path could include an environment variable or some other well-known path containing variable.
This makes less of an an intrusion and is easier to revert than changing lots of lines.
An even more simple approach with adding an environment variable for VCTargetsPath
:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120
Control Panel > System > Advanced Settings > Advanced > Environment Variables
VCTargetsPath
I have devised a somewhat complex, but functional work around involving the following steps.
The Microsoft Windows SDK 7.1 has several installation options. Having only the ".NET Development" child "Tools" checked is apparently not enough to build vcxproj projects, even if they don't include any C++ code (only pre- and post-build steps). Adding the "Visual C++ compilers" option and fully selecting the "Intellisense and Reference Assemblies" checkbox installs the necessary files and settings. I'm not sure if both are necessary, but that combination did work for me.