The 'packages' element is not declared
Taken from this answer.
- Close your
packages.config
file. - Build
- 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>