not a showstopper but when using nuget in a project, it creates a packages.config file with this shape
<?xml version="1.0" encoding="utf-8"?>
<packages>
... your packages
</packages>
this gives a warning in VS
The 'packages' element is not declared.
The origin of the problem got something to do with the xml declaration I guess.
Also I think that the default definition package shouldn’t throw warnings.
Does anyone know what should I change it to so I don’t get this warning? (ie even if I can see it only when the file is open, it also shows as a warning constantly with certain CA rules on.)
You can always make simple xsd schema for ‘packages.config’ to get rid of this warning. To do this, create file named “packages.xsd”:
Location of this file (two options)
packages.xsdacross multiple projects, move it to the Visual Studio Schemas folder (the path may slightly differ, it’sD:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemasfor me).Then, edit
<packages>tag inpackages.configfile (addxmlnsattribute):Now the warning should disappear (even if packages.config file is open in Visual Studio).