【问题标题】:Could Not update packages in asp.net core project on VS Mac无法在 VS Mac 上更新 asp.net 核心项目中的包
【发布时间】:2020-08-28 03:38:39
【问题描述】:

我在执行 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 添加包。 但得到同样的错误!

【问题讨论】:

  • 如果您尝试在浏览器中打开任何失败的 url,会发生什么?
  • 在浏览器中打开

标签: c# asp.net-core nuget visual-studio-mac


【解决方案1】:

刚刚想出了一个解决方法。

当我从 CLI 运行 #dotnet restore 时,它​​可以工作!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多