代码之家  ›  专栏  ›  技术社区  ›  ffejrekaburb

Dotnet核心Nuget集代理

  •  0
  • ffejrekaburb  · 技术社区  · 7 年前

    我正在运行dotnet core 2.2,我希望在运行dotnet restore时收到此消息时设置代理:

    NuGet.targets(114,5): error : 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 [C:\Projects\FarrisCosting\Projects.csproj]

    根据另一篇文章,可以使用以下命令:

    nuget.exe config -set http_proxy=http://my.proxy.address:port
    nuget.exe config -set http_proxy.user=mydomain\myUserName
    nuget.exe config -set http_proxy.password=mySuperSecretPassword
    

    使用dotnet核心约定,我希望能够提供以下内容: dotnet nuget config -set ,但这似乎不可用。

    我想知道我是否需要在没有封装的情况下直接从SDK运行nuget?

    1 回复  |  直到 6 年前
        1
  •  2
  •   ffejrekaburb    7 年前

    从本文安装nuget并运行适当的命令支持解决方案。

    NuGet Behind Proxy

    仍然希望看到这些命令集成到dotnet coret中。