vs2013 使用nuget时,提示无法访问xxx上的源

参考

VS2013无法使用Nuget的解决方法_闫小亘的博客-CSDN博客  https://blog.csdn.net/two_ye/article/details/116591474

 

Nuget官方网站已经不支持http访问, 只支持https,但是VS2013访问https默认使用的协议为Tls1.1,但是Nuget官方网站只支持Tls1.2。要解决这个问题,那就需要让vs2013以Tls1.3访问Nuget的官网,具体解决办法为在程序包管理控制台运行如下命令:

[Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol-bOR [Net.SecurityProtocolType]::Tls12

 

posted on 2021-10-21 15:31  xbj_hyml  阅读(111)  评论(0编辑  收藏  举报

导航