Visual Studio 2013 - 尝试还原包时出错。底层连接已关闭。

时间:2013-10-28 19:58:36

标签: nuget visual-studio-2013 nuget-package-restore

Visual Studio 2013 中,NuGet包管理器无法还原包。在项目上单击管理NuGet包时,NuGet会声明“此解决方案中缺少某些NuGet包。单击从您的在线包源恢复。”。单击“还原”后,出现以下错误...

管理NuGet包窗口

Error occurred while trying to restore packages. The underlying connection was closed.

如果您构建项目,输出窗口将显示以下错误...

构建输出窗口

Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
NuGet Package restore failed for project MyProject: The underlying connection was closed: An unexpected error occurred on a send..
NuGet package restore failed.

有什么想法吗?

1 个答案:

答案 0 :(得分:3)

对于Microsoft正在使用的CDN主机没有启用SSL,这是一个问题。试图访问CDN URL for the RazorGenerator.MVC package失败了。如果我通过Fiddler更改了返回非SSL的响应,它工作得很好。

似乎微软刚刚解决了他们的CDN问题 - 案件已经结束。