Install-Package : The remote name could not be resolved: 'packages.nuget.org' [closed]

感情迁移 提交于 2019-12-05 13:28:54

问题


For no reason, I have been getting this error message for a week or so;

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

when I navigate to the link in my browser, I see the proper ODATA Nuget Feed.

Checked the feed's fwlink url, it works fine on the browser as well;

http://go.microsoft.com/fwlink/?LinkID=206669

I tried the Manage Nuget Packages dialog box, the same error there.

BTW, my internal nuget servers works fine.

Can u help me on this? what blocks me to get to packages.nuget.org?


回答1:


Make sure that you update to NuGet 1.4. I had a similar error while using 1.0 and updated worked for me.



来源:https://stackoverflow.com/questions/6723574/install-package-the-remote-name-could-not-be-resolved-packages-nuget-org

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!