[英]Could Not update packages in asp.net core project on VS Mac
I am getting the following error when I do Project-> Update NuGet Packages.执行 Project-> Update NuGet Packages 时出现以下错误。
Retrying 'FindPackagesByIdAsync' for source ' https://api.nuget.org/v3-flatcontainer/buildbundlerminifier/index.json '.重试源“ https://api.nuget.org/v3-flatcontainer/buildbundlerminifier/index.Z466DEEC76ECDF35FCA6D3854 ”的“FindPackagesByIdAsync”。 The SSL connection could not be established, see inner exception.无法建立 SSL 连接,请参阅内部异常。 Unable to write data to the transport connection: The socket is not connected.无法将数据写入传输连接:套接字未连接。 The socket is not connected Retrying 'FindPackagesByIdAsync' for source ' https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.json '.套接字未连接重试“FindPackagesByIdAsync”源“ https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.Z466Z38.76ECDF25FCA56D The SSL connection could not be established, see inner exception.无法建立 SSL 连接,请参阅内部异常。 Unable to write data to the transport connection: The socket is not connected.无法将数据写入传输连接:套接字未连接。 The socket is not connected GET https://api.nuget.org/v3-flatcontainer/buildbundlerminifier/index.json GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.json Failed to retrieve information about 'Microsoft.AspNetCore.All' from remote source ' https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.json '. The socket is not connected GET https://api.nuget.org/v3-flatcontainer/buildbundlerminifier/index.json GET https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.json Failed从远程源“ https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.all/index.Z466DEEC76F6324FCA64D38 ”D75 中检索有关“Microsoft.AspNetCore.All”的信息。
I tried adding the packages through Project->Manage NuGet Packages.我尝试通过 Project->Manage NuGet Packages 添加包。 But get the same error!但是得到同样的错误!
Just figured out a workaround.刚刚想出了一个解决方法。
When I run #dotnet restore from the CLI, it works!当我从 CLI 运行 #dotnet restore 时,它可以工作!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.