ASP .Net Core依赖项给出错误

时间:2018-03-23 16:45:17

标签: c# asp.net-core

我已经安装了所有依赖项和Nuget包

enter image description here

但是我在创建项目时遇到错误: -

enter image description here

对于上述错误解决方案可以做些什么?

Error       Failed to download package 'Microsoft.Build.Runtime.15.3.409' from 'https://api.nuget.org/v3-flatcontainer/microsoft.build.runtime/15.3.409/microsoft.build.runtime.15.3.409.nupkg'.
The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft.build.runtime/15.3.409/microsoft.build.runtime.15.3.409.nupkg' has timed out after 100000ms.              

2 个答案:

答案 0 :(得分:2)

Nuget有一个状态页面,可以告诉您它的nuget.org是否存在问题:https://status.nuget.org/

The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/microsoft.build.runtime/15.3.409/microsoft.build.runtime.15.3.409.nupkg' has timed out after 100000ms.建议这些问题确实与网络相关,正如@ babak-naffas已经建议的那样。

答案 1 :(得分:1)

您的问题听起来与网络有关。

打开浏览器并尝试手动下载文件https://api.nuget.org/v3-flatcontainer/microsoft.build.runtime/15.3.409/microsoft.build.runtime.15.3.409.nupkg

其中一条评论(此后已被删除,其中有些评论)提到https://github.com/NuGet/Home/issues/2657,其中有一些来回发表了以下评论。

  

我离线谈到了OP,他的问题已经解决了。这个问题似乎与某些代理设置有关......