简体   繁体   English

无法在 VS Mac 上更新 asp.net 核心项目中的包

[英]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!但是得到同样的错误!

在此处输入图像描述

这是我的 PM 控制台的屏幕截图

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.

相关问题 如何在Mac上使用Vs代码部署ASP.NET Core MVC? - How to Deploy ASP.NET Core MVC with Vs Code on a Mac? Asp.net 核心 6 / 脚手架失败,无法加载项目信息 - Asp.net core 6 / Scaffolding failed, Could not load information for project 无法更新 asp.net 内核中 session 数据的值 - could not update the value of session data in asp.net core 无法更新 asp.net 核心 2.2 中的 session 数据 - could not update in session data in asp.net core 2.2 在没有 .NET 可移植性分析器或 VS 的情况下,我如何知道 asp.net 包与 .net 内核的兼容性 - How can I know the compatibility of the asp.net packages to .net core without .NET Portability Analyzer or VS Hangfire ASP.NET核心包 - Hangfire ASP.NET Core packages 在 Mac M1 机器上 - 无法在 Asp.Net Core 3.1 中运行 EF 核心迁移添加、更新 - On Mac M1 machine - Not able to run EF core Migrations Add ,Update in Asp.Net Core 3.1 ASP.Net Core-在项目中哪里可以找到Nuget软件包的安装列表 - ASP.Net Core - Where to find the Nuget packages installed list in the project 一个 ASP.NET Core 6 应用部分项目必须引用哪些 Nuget 包 - What Nuget packages must be referenced by an ASP.NET Core 6 application parts project 无法访问 asp.net core 中的路由 - Could not get to a route in asp.net core
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM