1

Closed

Error adding library package reference... the element '.../nuspec.xsd:authors' cannot contain child element

description

I am getting this error when I try to add a library package reference. The package manager window does not show up at all. This happened after I upgraded from 1.0 to 1.1. I've also tried the most recent build from here: http://ci.nuget.org:8080/repository/download/bt4/1401:id/VisualStudioAddIn/NuGet.Tools.vsix

I have the following package references:
AutoMapper.1.1.0.118
elmah.1.1
Ninject.2.1.0.76

file attachments

Closed Mar 22, 2011 at 9:15 PM by Haacked
Back-compat issue with pre-release version of NuGet. Authors element does not currently have child elements.

comments

Haacked wrote Mar 22, 2011 at 9:14 PM

This is by design. The authors element is a comma delimited string of authors. There are no author elements.
Do you have packages that were installed before NuGet 1.0? If so, they need to be deleted and re-installed. Note, don't forget to delete the entry in packages.config.

briane wrote Mar 23, 2011 at 2:36 PM

Yes they were installed prior to v1.0. I can't remove/update them from the console; I get the same error about the authors elements. Do I just need to delete the packages/lib folders and remove the references from my project?

Haacked wrote Mar 23, 2011 at 4:07 PM

Yes, you'll need to remove the packages and the references as well as the /packages.config file in the root of your project. Sorry for the inconvenience. This was a growing pain during our pre-release days. From 1.0 on, we plan to maintain a very high level of compatibility so this should be a one time pain.