问题描述
每当我尝试安装某些东西甚至只是列出软件包时,我都会收到此错误基础连接已关闭:无法为 SSL/TLS 安全通道建立信任关系"
我尝试了 Codeplex 的这个解决方案,但没有成功.
我使用最新版本的 Nuget.>
我也在 devenv.exe.config 中尝试了不同的选项,如下所示:
转到 VS2010 → 工具 → 库包管理器 → 包管理器设置.
选择包管理器 → 包源.
添加一个新的包源为:
名称:
NugetSource
将新添加的包源上移到第一个位置.
取消选中现有的Nuget 官方包源"
重新启动 VS2010.
Whenever I'm trying to install something or even just list the packages I get this error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel"
I tried this solution from Codeplex with no luck.
I use the latest version of Nuget.
I also tried different options in devenv.exe.config like this:
<servicePointManager checkCertificateName="false" checkCertificateRevocationList="false"/>
Go to VS2010 → Tools → Library Package Manager → Package Manager Settings.
Choose Package Manager → Package Sources.
Add a new package source as:
Name:
NugetSource
Move Up the newly added package source to first position.
UnCheck existing "Nuget official package source"
Restart VS2010.
这篇关于Visual Studio 2010 nuget 错误:底层连接已关闭:无法为 SSL/TLS 安全通道建立信任关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!