首页 新闻 赞助 找找看

.NET Core问题:"Failed to create prime the NuGet cache. new failed with: -2147352571"

1
悬赏园豆:30 [已解决问题] 解决于 2017-07-06 11:43

在 Windows 电脑上同时安装了 .NET Core SDK 1.0.4 与 2.0.0-preview1-005977 ,在 1.0.4 中每次执行 dotnet 命令(除了 dotnet -v )时,比如 dotnet restore 或 dotnet test ,都会出现下面的界面:

Configuring...
-------------------
A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 7788 ms
Expanding 100% 23063 ms
Failed to create prime the NuGet cache. new failed with: -2147352571

而在 2.0.0 Preview 1 中没这个问题。

dudu的主页 dudu | 高人七级 | 园豆:31075
提问于:2017-06-23 14:30
< >
分享
最佳答案
0

临时解决方法:设置环境变量 DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 

dudu | 高人七级 |园豆:31075 | 2017-06-23 14:37
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册