当我执行Project-> Update NuGet Packages时,我得到以下错误。
重试'FindPackagesByIdAsync'的源'。https:/api.nuget.orgv3-flatcontainerbuildbundlerminifierindex.json。'.无法建立SSL连接,见内部异常。 无法向传输连接写入数据。套接字未连接 The socket is not connectedRetrying 'FindPackagesByIdAsync' for source '。https:/api.nuget.orgv3-flatcontainermicrosoft.aspnetcore.allindex.json。'.无法建立SSL连接,见内部异常。 无法向传输连接写入数据。套接字未连接 套接字未连接 GET https:/api.nuget.orgv3-flatcontainerbuildbundlerminifierindex.json。 获取 https:/api.nuget.orgv3-flatcontainermicrosoft.aspnetcore.allindex.json。从远程源检索'Microsoft.AspNetCore.All'的信息失败。https:/api.nuget.orgv3-flatcontainermicrosoft.aspnetcore.allindex.json。'.
我试着通过Project->Manage NuGet Packages.But get the same error!
我想出了一个办法。
当我从CLI运行#dotnet还原时,它工作了!