問題描述:
Nuget官方網站已經不支持http訪問, 只支持https,但是VS2013訪問https默認使用的協議為Tls1.1,但是Nuget官方網站只支持Tls1.2。要解決這個問題,那就需要讓vs2013以Tls1.3訪問Nuget的官網,具體解決辦法為在程序包管理控制台運行如下命令:
方法:
[Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol-bOR [Net.SecurityProtocolType]::Tls12
結果: