Using VS2010, I created a Win32 C++ console application called \"TfsBuildTestTarget\". This is just the default console application created by the wizard. I made no code o
Make sure you are using the .NET 4.0 version of MSBuild.
If you use the .NET 3.5 version of MSBuild against a VS2010 solution that includes a vcxproj file you will get this error.
I made a c++ console application like you specified and ran it using both .NET 3.5 and .NET 4.0 MSBuild versions. I got the error using 3.5 and it worked using 4.0.
The Label attribute is new in .NET 4.0. It can be added to ItemGroup, PropertyGroup, Target, and other elements. The label attribute is not mentioned in the online help for msbuild but is defined int he msbuild 4.0 schema files.