[英]The build restored NuGet packages. Build the project again to include these packages in the build
[英]Error: The build restored NuGet packages. Build the project again to include these packages in the build. For more information
當我第一次構建我的項目時,構建成功,但是當我發布項目時,構建失敗並且我收到幾個錯誤消息:
構建恢復了 NuGet 包。 再次構建項目以在構建中包含這些包。 有關更多信息,請參閱以下鏈接http://www.postsharp.net/links/nuget-restore 。
這是什么意思? 我能做什么?
嘗試運行 Build Solution 並重新啟動 Visual Studio。 它為我完成了工作。
在重建之前清潔解決方案為我解決了這個問題。
對我來說,問題之一是我在 packages.config 中有不同版本的 nuget 重復項,這阻止了項目從 nuget.org 下載包。 刪除packages.config 中的重復條目就像一個魅力。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.