未能解析此远程名称:’nuget.org’(The remote name could not be resolved: 'nuget.org')
2013-10-30 21:59
676 查看
The remote name could not be resolved: 'nuget.org'(未能解析此远程名称:’nuget.org’)
Turn on "Allow NuGet to download missing packages during build" to make your life easier
![](http://www.hanselman.com/blog/content/binary/Windows-Live-Writer/NuG.NET-Package-Manager-released---GO-UP_ED72/pr-consent-configdlg%5B1%5D_thumb_1.png)
安装Nuget后,菜单栏选Tools>options>Package Manager> Package Restore>勾选上Allow Nuget to download misiing packages during build.
当解决方案中缺失packages,设置Nuget自动安装缺失packages.
然而... 貌似Nuget出故障了,网上简单搜索下,果然是天朝干的,解决方案搬过来,如下:
http://www.lixin.me/blog/2012/08/02/29583 打开Nuget,发现又出问题了:未能解析此远程名称:’nuget.org’。
在浏览器中输入 http://nuget.org 会发现是无法打开的。
在cmd命令行里输入: nslookup nuget.org 一般也是无法解析到这个域名的ip地址。
不过在cmd命令行里输入: nslookup nuget.org 8.8.8.8 向谷歌的dns查询这个域名,便能正确返回域名对应ip地址。
为什么使用dhcp自动获取的dns服务器就无法解析nuget.org 这个域名呢?
输入如下命令: nslookup –type=ns nuget.org 8.8.8.8 查询该域名的NameServer 服务器,会发现nuget.org使用的godaddy的域名服务器,而godaddy的域名服务器在国内被大规模屏蔽,所以在国内的dns服务器自然查 询不到该域名,也自然出现了未能解析此远程名称咯!
解决方法有二:
1.修改hosts文件。通过上面第二条命令获取了nuget.org的真实地址后,直接添加到hosts文件中。如:157.56.8.150 nuget.org
2.修改电脑的dns服务器,不要用自动获取的dns,而是直接修改为opendns或是谷歌的dns。如8.8.8.8
Turn on "Allow NuGet to download missing packages during build" to make your life easier
![](http://www.hanselman.com/blog/content/binary/Windows-Live-Writer/NuG.NET-Package-Manager-released---GO-UP_ED72/pr-consent-configdlg%5B1%5D_thumb_1.png)
安装Nuget后,菜单栏选Tools>options>Package Manager> Package Restore>勾选上Allow Nuget to download misiing packages during build.
当解决方案中缺失packages,设置Nuget自动安装缺失packages.
然而... 貌似Nuget出故障了,网上简单搜索下,果然是天朝干的,解决方案搬过来,如下:
http://www.lixin.me/blog/2012/08/02/29583 打开Nuget,发现又出问题了:未能解析此远程名称:’nuget.org’。
在浏览器中输入 http://nuget.org 会发现是无法打开的。
在cmd命令行里输入: nslookup nuget.org 一般也是无法解析到这个域名的ip地址。
不过在cmd命令行里输入: nslookup nuget.org 8.8.8.8 向谷歌的dns查询这个域名,便能正确返回域名对应ip地址。
为什么使用dhcp自动获取的dns服务器就无法解析nuget.org 这个域名呢?
输入如下命令: nslookup –type=ns nuget.org 8.8.8.8 查询该域名的NameServer 服务器,会发现nuget.org使用的godaddy的域名服务器,而godaddy的域名服务器在国内被大规模屏蔽,所以在国内的dns服务器自然查 询不到该域名,也自然出现了未能解析此远程名称咯!
解决方法有二:
1.修改hosts文件。通过上面第二条命令获取了nuget.org的真实地址后,直接添加到hosts文件中。如:157.56.8.150 nuget.org
2.修改电脑的dns服务器,不要用自动获取的dns,而是直接修改为opendns或是谷歌的dns。如8.8.8.8
相关文章推荐
- The remote name could not be resolved: 'nuget.org'(未能解析此远程名称:’nuget.org’)
- [MySQL]IP address '192.168.31.110' could not be resolved: Temporary failure in name resolution
- MSbuild failure: error CS0246: The type or namespace name 'DataLoader_Accessor' could not be found
- A definition for the symbol '<symbolName>' could not be located
- Unity使用FXMaker导致发布时报“The type or namespace name `UnityEditor' could not be found” 解决备忘
- The remote name could not be resolved: 'smtp.163.com'
- The remote name could not be resolved:'maps.googleapis.com' 的解决办法
- IP address '172.172.200.88' could not be resolved: Temporary failure in name resolution
- Maven 创建项目的时候 [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be fo
- The requested list key 'map' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or peopl
- The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace
- ADS错误之the session file 'C:\user\username\default-1-2-0-0.ses' could not be loaded.
- 发邮件遇到 Failure sending mail.The remote name could not be resolved: 'www.youdomain.com' 问题的解决方法
- The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not exist or no valid version could be found 解决
- The requested list key 'map' could not be resolved as a collection/array/map/enumeration/iterator ty
- WebService problem:The remote name could not be resolved
- The remote name could not be resolved问题的解决方法
- ADS错误之the session file 'C:\user\username\default-1-2-0-0.ses' could not be loaded
- android NDK开发编译C++文件出现Type 'jint' could not be resolved和Unresolved inclusion: <jni.h>的解决办法
- android NDK开发编译时出现Type 'jint' could not be resolved和Unresolved inclusion: <jni.h>的解决办法