The 'packages' element is not declared The 'packages' element is not declared xml xml

The 'packages' element is not declared


Taken from this answer.

  1. Close your packages.config file.
  2. Build
  3. Warning is gone!

This is the first time I see ignoring a problem actually makes it go away...

Edit in 2020: if you are viewing this warning, consider upgrading to PackageReference if you can


Use <packages xmlns="urn:packages">in the place of <packages>


Oh ok - now I get it.You can ignore this one - the XML for this is just not correct - the packages-element is indeed not declared (there is no reference to a schema or whatever).I think this is a known minor bug that won't do a thing because only NuGet will use this.

See this similar question also.