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

Leave a Comment