小编Vis*_*d V的帖子

"无法找到中央目录记录的结尾" - 2015年VS社区中的NuGet

当我尝试从VS社区版2015中的NuGet安装任何软件包时出现错误.

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 …
Run Code Online (Sandbox Code Playgroud)

c# visual-studio nuget visual-studio-2015

18
推荐指数
2
解决办法
2万
查看次数

标签 统计

c# ×1

nuget ×1

visual-studio ×1

visual-studio-2015 ×1