gpt4 book ai didi

c# - 在 .net Rider IDE : Failed to download package `x` The HTTP request to GET `x` has timedout after 100000ms 中恢复解决方案的 nuget 包

转载 作者:太空狗 更新时间:2023-10-29 23:20:08 25 4
gpt4 key购买 nike

我有 ArchLinux 发行版,我是第一次在 Linux 上测试 .Net SDK。我安装了 JetBrains Rider IDE 的试用版。我创建了新的 ASP.Net Core 项目,但在构建解决方案或手动恢复解决方案的 Nuget 包时,我在 Event Log 窗口中收到此错误消息:

1:51 PM Can't restore NuGet packages in integrated projects Failed to retrieve information about 'Microsoft.AspNetCore.WebUtilities' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'. Settings Log Packages folder

1:51 PM Restore failed Failed to retrieve information about 'Microsoft.AspNetCore.WebUtilities' from remote source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'. Settings Log Packages folder

这是 Log 窗口的内容,因为它的内容非常大,我将其上传到谷歌驱动器:Here

有人遇到过这个问题吗?另外,为什么 rider 试图获取地球上所有的 Nuget 包?我没有对 Microsoft.Win32.Registry 的引用,并且这些错误行之一提示:

COREMINIMAL: Failed to download package 'Microsoft.Win32.Registry.4.4.0'

编辑 1

之后,尝试 dotnet restore 我得到以下输出:

$ dotnet restore

Permission denied to modify the '/opt/dotnet/sdk/NuGetFallbackFolder' folder.

Here are some options to fix this error:
---------------------
1. Re-run this command with elevated access.
2. Disabled the first run experience by setting the environment variable DOTNET_SKIP_FIRST_TIME_EXPERIENCE to true.
3. Copy the .NET Core SDK to a non-protected location and use it from there.

Restoring packages for /home/m/Prog Projects Mid 2018/CSharp/testingRider/WebApplication1/WebApplication1/WebApplication1.csproj...
Failed to download package 'Microsoft.Win32.Registry.4.4.0' from 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4.0/microsoft.win32.registry.4.4.0.nupkg'.
The download of 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4.0/microsoft.win32.registry.4.4.0.nupkg' timed out because no data was received for 60000ms.
Exception of type 'System.TimeoutException' was thrown.
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json'.
An error occurred while sending the request.
SSL connect error
Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.mvc.viewfeatures/index.json'.
An error occurred while sending the request.

输出太长了,大部分是关于重试下载包。

最佳答案

根据随附的 Rider 和 dotnet 日志,此问题与 Rider IDE 无关。

似乎有一些 dotnet 的初次体验功能需要访问 dotnet/sdk/NuGetFallbackFolder 但未提供,因此您在日志,但这可能不是真正的根本原因。

根据日志消息 The download of 'https://api.nuget.org/v3-flatcontainer/microsoft.win32.registry/4.4. 0/microsoft.win32.registry.4.4.0.nupkg' 超时,因为在 60000 毫秒内没有收到数据。

您可能应该检查您的网络和 dotnet/NuGet 设置。

关于c# - 在 .net Rider IDE : Failed to download package `x` The HTTP request to GET `x` has timedout after 100000ms 中恢复解决方案的 nuget 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48731607/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com