Replies: 1 comment
-
|
Sorry for late response. Have you already resolve your issue? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm using nuget.protocol package for my CI/CD pipeline console application with .net 5.
The application needs to get, download packages under a setted proxy setting.
For pushing packages step I need to unset proxy , so I'm setting the proxy for get, download operations and then unsetting proxy on runtime. But nuget push operation didn't understand the nuget.config file has been changed and so doesn't understand unsetting proxy operation. There isn't any problem when setting proxy and then get and download packages it works fine. But push operation just doesn't get it when .exe is running.
So what is the reason of this situation and how can I force to reload settings when I pushing on runtime.
Because I've just tried if I unset proxy and then exit console application and then start exe , pushing works. But on the runtime it just can't get the setting config (proxy configuration) has changed.
settings.Remove("config", new AddItem("HTTP_PROXY", "https://blac.blac"));
settings.SaveToDisk();
await resource.Push(
packagePaths: packagePaths,
symbolSource: null,
timeoutInSecond: 2401
disableBuffering: false,
getApiKey: packageSource => null,
getSymbolApiKey: packageSource => null,
noServiceEndpoint: false,
skipDuplicate: true,
symbolPackageUpdateResource: null,
log: new NugetLogger(_loggerFactory)
);
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions