一、根本原因
1、Nuget官方網站已經不支持http訪問,只支持https。
2、VS2013訪問https默認使用的協議為Tls1.1,但是Nuget官方網站只支持Tls1.2
二、解決方案(要讓vs2013以Tls1.3訪問Nuget的官網)
1、找到設置:VS > 工具 > NuGet包管理器 > 程序包管理器設置 > 程序包源
2、將 https://www.nuget.org 和 https://www.nuget.org/api/v2/ 作為可用程序包源
3、在 VS > 工具 > NuGet包管理器 > 程序包管理器控制台 輸入以下命令
[Net.ServicePointManager]::SecurityProtocol=[Net.ServicePointManager]::SecurityProtocol-bOR [Net.SecurityProtocolType]::Tls12
至此,問題得到解決