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
報錯為:Install-Package : 基礎連接已經關閉: 發送時發生錯誤。