Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3992372
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:45:25+00:00 2026-05-20T06:45:25+00:00

Using VS2010, I created a Win32 C++ console application called TfsBuildTestTarget. This is just

  • 0

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 or project changes, and it builds ok in VS2010 as expected.

Then I created an MSBUILD project file as follows:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Target Name="Build">
        <MSBuild Projects="TfsBuildTestTarget.sln" Targets="TfsBuildTestTarget" Properties="Configuration=Release;Platform=Win32"/>
    </Target>
</Project>

When I run MSBUILD on this project file, I get the following error:

“c:\dev\TfsBuildTestTarget\testBuild.proj”
(default target) (1 ) ->
“c:\dev\TfsBuildTestTarget\TfsBuildTestTarget.sln”
(TfsBuildTe stTarget target) (2) ->
(TfsBuildTestTarget target) ->
c:\dev\TfsBuildTestTarget\TfsBuildTestTarget\TfsBuildTestTarget.vcxproj(3,14):
error MSB4066: The attribute “Label” in element is unrecognized.

The referenced line, in the (VS-generated) vcxproj file looks like this:

  <ItemGroup Label="ProjectConfigurations">

The reference for the MSBuild item element does not include a Label attribute.

What is going on here? Why is VS2010 generating project files that do not appear to be compatible with MSBuild? Is there a way for me to build this solution as part of an MSBuild project without manually tweaking the XML?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:45:26+00:00Added an answer on May 20, 2026 at 6:45 am

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just created a new project in VS2010 using the Visual c# >
I just created a simple project in VS2010, C# dotnet 3.5 using System; using
I created win32 console application in vs2010 (without select the option of precompiled header).
I created a c++ Win32 console application in VS2010, and in a separated class
I have created a DeclarativeServiceLibrary using VS2010 beta 2, Please check this image of
I have a standard sql server 2008 project which has been created using vs2010.
I am using VS2010 and I created a ASP.net empty web application, but I
I'm using VS2010 and created a simple asp. web forms application, using Development Server
I've created a C# WinForms application using VS2010. I'm new to creating user controls
I have a created an excel addin application in vb.net using vs2010.The application is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.