[英]Visual Studio 2017 only has offline Nuget Packages for .NET Core 2.x. How to get online packages?
[英]Restoring nuget packages of a solution in .net Rider IDE: Failed to download package `x` The HTTP request to GET `x` has timedout after 100000ms
我有ArchLinux
发行版,我第一次在Linux
上测试.Net SDK
。 我安装了JetBrains Rider IDE
的试用版。 我创建了新的ASP.Net Core
项目,但是在构建解决方案或手动恢复解决方案的Nuget包时,我在“ Event Log
窗口中收到此错误消息:
1:51 PM无法在集成项目中恢复NuGet包无法从远程源' https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index检索有关'Microsoft.AspNetCore.WebUtilities'的信息.json '。 设置日志包文件夹
1:51 PM恢复失败无法从远程源“ https://api.nuget.org/v3-flatcontainer/microsoft.aspnetcore.webutilities/index.json ”检索有关“Microsoft.AspNetCore.WebUtilities”的信息。 设置日志包文件夹
这是Log
窗口内容,因为它是非常大的内容我将其上传到谷歌驱动器: 这里
以前有人遇到过这个问题吗? 此外,为什么骑手试图获取地球上的所有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
下载包。
根据附带的Rider和dotnet
日志,此问题与Rider IDE无关。
似乎有一些dotnet
第一次体验功能,需要访问dotnet/sdk/NuGetFallbackFolder
,这是没有给出的,所以你在日志中得到错误,但这可能不是真正的根案例。
问题出在您的计算机和NuGet服务器之间的网络中,根据日志消息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设置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.