【问题标题】:`dot net restore` fails due to corrupted package`dot net restore` 由于包损坏而失败
【发布时间】:2016-12-25 23:07:58
【问题描述】:

我刚刚安装了 LTS 版本的 .NET Core SDK (1.0.0-preview2-003156)。我使用创建了一个新项目

dotnet new

但是,这失败了,因为

Failed to create prime the NuGet cache. restore failed with 1.

我按照this post 中的指示清除了我的本地包缓存,剩下这个包:

System.Security.Cryptography.Algorithms

4.2.0\ref 子目录在我尝试打开它时出现此错误:

The file or directory is corrupted and unreadable.

我该如何清除这个包,或者至少达到恢复包恢复工作的程度?

【问题讨论】:

    标签: nuget .net-core nuget-package-restore dotnet-restore


    【解决方案1】:

    我最终不得不对我的机器运行 chkdsk。因为包目录在我的 C:\ 驱动器上,所以我必须重新启动它才能运行磁盘修复。 chkdsk 完成后,我就可以删除包了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-05
      • 2011-08-04
      • 1970-01-01
      • 1970-01-01
      • 2019-05-13
      • 2016-05-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多