I get an error when trying to install any package from NuGet in the VS 2015 community version.
Attempting to gather dependencies information for package 'Microsoft.Net.Http.2.2.29' with respect to project 'ClassLibrary1', targeting '.NETFramework,Version=v4.5.2' Attempting to resolve dependencies for package 'Microsoft.Net.Http.2.2.29' with DependencyBehavior 'Lowest' Resolving actions to install package 'Microsoft.Net.Http.2.2.29' Resolved actions to install package 'Microsoft.Net.Http.2.2.29' Install failed. Rolling back... Package 'Microsoft.Bcl.Build 1.0.14' does not exist in project 'ClassLibrary1' Package 'Microsoft.Bcl.Build 1.0.14' does not exist in folder 'C:\Users\441793\documents\visual studio 2015\Projects\ClassLibrary1\packages' System.IO.InvalidDataException: End of Central Directory record could not be found. at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory() at System.IO.Compression.ZipArchive.Init(Stream stream, ZipArchiveMode mode, Boolean leaveOpen) at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode, Boolean leaveOpen, Encoding entryNameEncoding) at System.IO.Compression.ZipArchive..ctor(Stream stream, ZipArchiveMode mode) at NuGet.Packaging.NuGetPackageUtils.ExtractPackage(String targetPath, FileStream stream) at NuGet.Packaging.NuGetPackageUtils.<>c__DisplayClass1_0.<<InstallFromStreamAsync>b__0>d.MoveNext()
The error message I get is on the "Error List" tab
End of Central Directory record could not be found
I tried the Console application in class libraries and got this error for all the packages I tried to install.
NuGet Version: 3.0.60624.657
Any help would be appreciated
c # visual-studio visual-studio-2015 nuget
Vishnu prasad v
source share