我正在运行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?