VS2013无法使用Nuget的解决方法

问题描述:

  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 @ 2021-06-15 17:18  煎饼馃子  阅读(719)  评论(0编辑  收藏  举报