NuGet feed version incompatibilities

Dec 15, 2010 at 12:35 PM

I'm getting errors like the following when attempting to add packages from the current current NuGet feed url:

Install-Package : The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' has invalid child element 'created' in namespace 'http://sc
hemas.microsoft.com/packaging/2010/07/nuspec.xsd'. List of possible elements expected: 'iconUrl, dependencies, projectUrl, title, tags, summary, owners' in namespace 'http:/
/schemas.microsoft.com/packaging/2010/07/nuspec.xsd'.
At line:1 char:16
+ install-package <<<<  CommonServiceLocator
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGet.VisualStudio.Cmdlets.InstallPackageCmdlet
I know the nuspec schema has been changed but shouldn't the tools have been updated as well to utilize the new schema? 
And if the tools have been updated, shouldn't non-conforming packages be filtered out of the feed?
I'm using the feed url http://go.microsoft.com/fwlink/?LinkID=206669 with the latest version of the NuGet Package Manager according to the VS Extensions Manager. 
Dec 22, 2010 at 7:21 AM

I had the same problem.  It was because I had a previous version installed and I had added packages using that old version.  You will need to remove the /packages folder in your project root, as those old packages are incompatible with the new version.

Developer
Dec 22, 2010 at 7:29 AM

See this thread http://nuget.codeplex.com/Thread/View.aspx?ThreadId=237992