我有ArchLinux
发行版,我第一次在.Net SDK
上测试Linux
。我安装了JetBrains Rider IDE
的试用版。我创建了新的ASP.Net Core
项目,但在构建解决方案或手动恢复解决方案的Nuget包时,我在Event Log
窗口中收到此错误消息:
1:51 PM无法在集成项目中恢复NuGet包 无法检索有关Microsoft.AspNetCore.WebUtilities'的信息。来自远程来源 ' https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json&#39 ;. 设置日志包文件夹
1:51 PM恢复失败 无法检索有关Microsoft.AspNetCore.WebUtilities'的信息。来自远程来源 ' https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json&#39 ;. 设置日志包文件夹
这是Log
窗口内容,因为我将其上传到google驱动器的内容非常庞大:Here
以前有人遇到过这个问题吗?此外,为什么骑手试图获取地球上的所有Nuget包?我没有引用Microsoft.Win32.Registry
,其中一条错误行抱怨:
COREMINIMAL:无法下载包 ' 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.
输出也很长,大部分都是retrying
下载包。
答案 0 :(得分:3)
根据附加的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' timed out because no data was received for 60000ms.
您应该检查您的网络和dotnet / NuGet设置。