2011-06-11 99 views
1

在我的一個項目中,我嘗試添加某些nuget軟件包時開始出現錯誤。任何jQuery.ui包,SassAndCoffee,Knockout.js,甚至Unity。錯誤是:Nuget添加庫軟件包參考錯誤

Install failed. Rolling back... The element 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd:authors' cannot contain child element 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd:author' because the parent element's content model is text only.

我已經創建了一個空的項目,所有這些安裝罰款。有任何想法嗎?

+0

我最終重建了這個項目。我仍然想知道發生了什麼事。 – jhorback 2011-06-11 12:45:46

回答

5

我的猜測是,你已經創建了一箇舊版本的NuGet的項目,然後加入一些包到工程後,升級後的NuGet。新版本的Nuget沒有作者作爲authors元素的子元素,而是用逗號分隔的字符串列表。

在這種情況下,分辨率是刪除軟件包和手動從packages.config編輯出來。

this issue的解釋和解決。