简体   繁体   中英

Unable to install/update any packages through NuGet manager

I am unable to install/update any library through NuGet.I have tried restoring Nuget for solution, clearing NuGet cache, restarting VS and even restarting the system. I am getting below mentioned errors

Tried to install 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.data.oledb.4.6.0.nupkg '. End of Central Directory record could not be found.

Tried to update 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 '. End of Central Directory record could not be found.

I had this problem a while back and resolved it by deleting Nuget.config from %APPDATA%\NuGet as per Henrick Andersson's blog: https://medium.com/@hnrkndrssn/nuget-restore-error-end-of-central-directory-record-could-not-be-found-3908129dbac5 . Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM