当我执行Project-> Update NuGet Packages时,出现以下错误。
为源“ https://api.nuget.org/v3-flatcontainer/buildbundlerminifier/index.json”重试“ FindPackagesByIdAsync”。 无法建立SSL连接,请参阅内部异常。 无法将数据写入传输连接:未连接套接字。 插座未连接 正在为源“ https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.json”重试“ FindPackagesByIdAsync”。 无法建立SSL连接,请参阅内部异常。 无法将数据写入传输连接:未连接套接字。 插座未连接 获取https://api.nuget.org/v3-flatcontainer/buildbundlerminifier/index.json 获取https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.json 无法从远程源“ https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.json”检索有关“ Microsoft.AspNetCore.All”的信息。
我尝试通过Project-> Manage NuGet Packages添加软件包。 但是会出现同样的错误!
答案 0 :(得分:0)
只是想出一种解决方法。
当我从CLI运行#dotnet restore时,它有效!