在VS Mac上无法更新asp.net core项目的包。

问题描述 投票:0回答:1

当我执行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!

enter image description here

Here is a screenshot of my PM console

c# asp.net-core nuget visual-studio-mac
1个回答
0
投票

我想出了一个办法。

当我从CLI运行#dotnet还原时,它工作了!

© www.soinside.com 2019 - 2024. All rights reserved.