簡體   English   中英

無法通過 NuGet 管理器安裝/更新任何軟件包

[英]Unable to install/update any packages through NuGet manager

我無法通過 NuGet 安裝/更新任何庫。我嘗試恢復 Nuget 以獲得解決方案,清除 NuGet 緩存,重新啟動 VS 甚至重新啟動系統。 我收到以下提到的錯誤

試圖安裝 System.Data.OleDb

Severity Code Description Project File Line Suppression State Error Error downloading 'System.Data.OleDb.4.6.0' from ' https://api.nuget.org/v3-flatcontainer/system.data.oledb/4.6.0/system.數據.oledb.4.6.0.nupkg '。 找不到中央目錄記錄的結尾。

試圖更新 System.IO.Packaging

Severity Code Description Project File Line Suppression State Error Error downloading 'System.IO.Packaging.4.6.0: System.IO.FileSystem.Primitives [4.3.0, )' from ' https://api.nuget.org/v3- flatcontainer/system.io.packaging/4.6.0/system.io.packaging.4.6.0.nupkg '。 找不到中央目錄記錄的結尾。

不久前我遇到了這個問題,並通過從 %APPDATA%\NuGet 中刪除 Nuget.config 來解決它,根據 Henrick Andersson 的博客: https://medium.com/@hnrkndrssn/nuget-restore-error-end-of-central-restore-error-end-of-central目錄記錄無法找到-3908129dbac5 希望有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM