我收到此错误:
[nuget] 无法加载源的服务索引api.nuget/v3/index.json.发送时发生错误请求.无法连接到远程服务器 A 连接尝试失败,因为连接方没有正确响应一段时间后,或建立连接失败,因为连接的主机未能响应 185.82.212.95:8080
解决方案我在 VS 2017 中遇到了同样的问题.您需要为 VS 启用代理设置,以便它可以使用现有的 IE 代理访问互联网.这对于使用办公室笔记本电脑和代理设置由组策略管理并且 IE 设置自动更新的用户特别有用.如果 VS IDE 本身有一个选项可以像 Eclipse IDE 一样添加代理,那就太好了.
解决方案
C:\Program Files (x86)\Microsoft VisualStudio\2017\Professional\Common7\IDE
在现有的 system 标签内添加如下 defaultProxy 标签 -
<defaultProxy enabled="true" useDefaultCredentials="true"><proxy usesystemdefault="true" bypassonlocal="true"/></defaultProxy><设置><ipv6 enabled="true"/></设置></system>I am getting This error:
[nuget] Unable to load the service index for source api.nuget/v3/index.json. An error occurred while sending the request. Unable to connect to the remote server A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 185.82.212.95:8080
解决方案
I was having same issue in VS 2017. You would need to enable proxy settings for VS, so that it can use existing IE proxy to reach out internet. This is especially useful, for those users, who uses office laptops and proxy settings are managed by group policies and IE settings get updated automatically. It would have been great if there was an option within VS IDE itself to add proxy just like Eclipse IDE has.
Solution
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE
Add defaultProxy tags as below, within the existing system tag -
<system> <defaultProxy enabled="true" useDefaultCredentials="true"> <proxy usesystemdefault="true" bypassonlocal="true" /> </defaultProxy> <settings> <ipv6 enabled="true"/> </settings> </system>
更多推荐
无法在 VS2017 中加载源 https://api.nuget.org/v3/index.json 的服务索引?
发布评论