MSBuild Error MSB4066: The attribute "version" in element <PackageReference> is unrecognized. RRS feed

  • Question

  • I tried running every MSBUILD version of this, and still on manage to get this error with little to no differences. I'm not sure of any other methods that I can take to get this running in this. I looked around and no one seems to have a clear cut answer for this. Is there anyway to get a clearer error given for this? Or can someone help me get passed this error? This builds in Visual Studio, but when I try to make a Build Definition for it, this is when I seem to get this error. The following settings are what I have. What exactly am I supposed to be doing here? I see that it should be version 15 (for what's on my computer itself), but for tfs, I'm not sure. I'm using a self-hosted agent, and I tried putting the builds on the host computer that houses the agent, and that didn't do much either.

    The other questions on the forums seemed to be much older, so I'm not sure. 

    Friday, January 10, 2020 5:43 PM

All replies

  • Hi PieceofPie,

    Welcome to MSDN forum.

    We are sorry that it brings this inconvenience. But it seems to beyond our support. Since the tfs forum has been locked. To get dedicated support for it, we recommend you could go to stack overflow with tfs tag.

    Thank you for understanding.

    Best Regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Tuesday, January 14, 2020 6:19 AM
  • Stack overflow is pretty awful and I can't ask questions over there. 
    Tuesday, January 14, 2020 9:29 PM