title: "End of Central Directory record could not be found" - NuGet in VS community 2015
body: <p>I am getting an error when i try to install any package from the NuGet in VS community edition 2015.</p>
  
  <pre><code>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.&lt;&gt;c__DisplayClass1_0.&lt;&lt;InstallFromStreamAsync&gt;b__0&gt;d.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
     at NuGet.Common.ConcurrencyUtilities.&lt;ExecuteWithFileLocked&gt;d__0`1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at NuGet.Common.ConcurrencyUtilities.&lt;ExecuteWithFileLocked&gt;d__0`1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
     at NuGet.Packaging.NuGetPackageUtils.&lt;InstallFromStreamAsync&gt;d__1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
     at NuGet.Protocol.Core.v3.GlobalPackagesFolderUtility.&lt;AddPackageAsync&gt;d__1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
     at NuGet.Protocol.Core.v3.DownloadResourceV3.&lt;GetDownloadResourceResultAsync&gt;d__4.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at NuGet.PackageManagement.PackageDownloader.&lt;GetDownloadResourceResultAsync&gt;d__1.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
     at NuGet.PackageManagement.NuGetPackageManager.&lt;ExecuteNuGetProjectActionsAsync&gt;d__42.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at NuGet.PackageManagement.NuGetPackageManager.&lt;ExecuteNuGetProjectActionsAsync&gt;d__42.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at NuGet.PackageManagement.UI.UIActionEngine.&lt;ExecuteActionsAsync&gt;d__5.MoveNext()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at NuGet.PackageManagement.UI.UIActionEngine.&lt;PerformActionAsync&gt;d__3.MoveNext()
  ========== Finished ==========
  </code></pre>
  
  <p>Error message i receive is in the Error List tab is</p>
  
  <pre><code>End of Central Directory record could not be found
  </code></pre>
  
  <p>I tried from Console application to Class libraries and getting this error for all packages i tried to install.</p>
  
  <p>NuGet Version is : 3.0.60624.657</p>
  
  <p>Any help will be appreciated</p>