无法下载套件'runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.1.1' [英] Failed to download package 'runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.1.1'

查看:54
本文介绍了无法下载套件'runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.1.1'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2017中使用Mobile App,但是当我第一次创建此项目并尝试构建它时,发生了以下错误:

I'm working with Mobile App in Visual Studio 2017, but when I first created this project and tried to build it, the following error occurred:

Failed to download package 'runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.1.1' from 'https://api.nuget.org/v3-flatcontainer/runtime.win10-x86.microsoft.net.uwpcoreruntimesdk/2.1.1/runtime.win10-x86.microsoft.net.uwpcoreruntimesdk.2.1.1.nupkg'.
The HTTP request to 'GET https://api.nuget.org/v3-flatcontainer/runtime.win10-x86.microsoft.net.uwpcoreruntimesdk/2.1.1/runtime.win10-x86.microsoft.net.uwpcoreruntimesdk.2.1.1.nupkg' has timed out after 100000ms.        

我搜索并发现有人建议我将DNS服务器从8.8.8.8更改为208.67.222.222,但这没有用.

I searched and found someone suggesting I should change my DNS server from 8.8.8.8 to 208.67.222.222 but it didn't work.

我该如何解决这个问题?

How can I solve this problem?

推荐答案

我也为我的所有包裹都遇到了这个问题.但是,如果我将nupkg链接复制到浏览器,则可以很好地下载该软件包.因此,这是某处VS的问题.我提交了错误.

I hit this issue as well for all my packages. But if I copied the nupkg link to my browser, I could download the package fine. So it was an issue with VS somewhere. I filed a bug.

要解决此问题,因为我发现没有其他解决方案似乎可行,因此我从 Nuget下载页面下载了nuget.exe.,然后在命令行中运行以下命令:

To workaround it, as no other solutions I found seemed to work, I downloaded nuget.exe from the Nuget Download page and then ran the following in the command line:

nuget restore MySolution.sln

这很好地下载了所有软件包.一旦完成,我就可以在VS中运行我的项目了.

This downloaded all the packages fine. Once it was done, I could run my project in VS without problems.

这篇关于无法下载套件'runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.1.1'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆