【问题标题】:Unable to connect to nuget package source无法连接到 nuget 包源
【发布时间】:2018-03-11 12:26:21
【问题描述】:

我的计算机上有两个版本的 Visual Studio(2013 和 2015),由于我安装了 VS2013,它无法连接到任何 nuget.org 包源。

  1. 我没有通过代理连接到互联网。

  2. 我已经尝试在两个版本的 Visual Studio 中清理 nuget 缓存并重新安装 nuget 包管理器。

C:\Users{user}\AppData\Roaming\NuGet\nuget.Config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <activePackageSource>
       <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
    </activePackageSource>
    <packageSources>
        <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>

当我尝试恢复或安装任何软件包时,VS 一直在加载,几分钟后消息是:

使用 VS2015:

[nuget.org] 无法加载源 https://api.nuget.org/v3/index.json 的服务索引。 Error al enviar la solicitud。 没有可能的 conectar con el servidor remoto。

Se produjo un error durante el intento de conectada no respondió adecuadamente tras un periodo de tiempo, o bien se produjo un error en la conectado establecida ya que el host conectado no ha podido responder 10.115.8.100:8080

使用 VS2013:

无法连接到远程服务器

【问题讨论】:

    标签: visual-studio-2013 visual-studio-2015 nuget


    【解决方案1】:

    请检查你的VS IDE中是否有nuget.org包源,如果没有,你可以添加回来。

    参考:

    VS2015 nuget package manager not finding packages

    还请确保您使用最新的更新和 NuGet 版本:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-21
      • 1970-01-01
      • 1970-01-01
      • 2019-09-25
      • 1970-01-01
      相关资源
      最近更新 更多