Dotnet Core Nuget 设置代理

Dotnet Core Nuget set proxy

我正在 运行ning dotnet core 2.2,我想在 运行ning 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]

根据另一个 post,这些命令是可能的:

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?

从此 post 和 运行 安装 nuget,适当的命令支持解决方法。

NuGet Behind Proxy

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