安装包:无法解析远程名称:“packages.nuget.org" [英] Install-Package : The remote name could not be resolved: 'packages.nuget.org'
问题描述
无缘无故,我已经收到这个错误消息一个星期左右了;
For no reason, I have been getting this error message for a week or so;
PM> Install-Package Elmah Install-Package : 远程名称不能得到解决:'packages.nuget.org' At line:1 char:16+安装包<<<<<艾尔玛+ CategoryInfo : NotSpecified: (:) [Install-Package],网络异常+ FullQualifiedErrorId :System.Net.WebException,NuGet.PowerShell.Commands.InstallPackageCommand
PM> Install-Package Elmah Install-Package : The remote name could not be resolved: 'packages.nuget.org' At line:1 char:16 + Install-Package <<<< Elmah + CategoryInfo : NotSpecified: (:) [Install-Package], WebException + FullyQualifiedErrorId : System.Net.WebException,NuGet.PowerShell.Commands.InstallPackageCommand
当我导航到浏览器中的链接时,我看到了正确的 ODATA Nuget Feed.
when I navigate to the link in my browser, I see the proper ODATA Nuget Feed.
检查了提要的 fwlink url,它在浏览器上也能正常工作;
Checked the feed's fwlink url, it works fine on the browser as well;
http://go.microsoft.com/fwlink/?LinkID=206669
我尝试了管理 Nuget 包"对话框,但出现了同样的错误.
I tried the Manage Nuget Packages dialog box, the same error there.
顺便说一句,我的内部 nuget 服务器运行良好.
BTW, my internal nuget servers works fine.
你能帮我解决这个问题吗?是什么阻止了我访问 packages.nuget.org?
Can u help me on this? what blocks me to get to packages.nuget.org?
推荐答案
确保更新到 NuGet 1.4.我在使用 1.0 时遇到了类似的错误,更新对我有用.
Make sure that you update to NuGet 1.4. I had a similar error while using 1.0 and updated worked for me.
这篇关于安装包:无法解析远程名称:“packages.nuget.org"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!