Dotnet Core Nuget设置代理

时间:2018-12-19 14:21:18

标签: .net .net-core nuget nuget-package-restore

我正在运行dotnet core 2.2。我想设置一个代理,因为在运行dotnet restore时收到此消息。

gradle build

每发表一则该命令就可以。

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]

我希望使用dotnet核心约定

dotnet nuget config -set,但这似乎不可用。我在想我需要直接从SDK运行nuget而无需封装?

1 个答案:

答案 0 :(得分:0)

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

NuGet Behind Proxy

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