[英]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.