-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nuget ignores proxy settings when using -ConfigFile (only user-level config file is respected) #747
Comments
This is an issue on the latest Nuget client as well. Even without |
I'm hitting this issue too. Is there a known work around to this issue? Ta |
@grillba It can also be set via environment variables |
Thanks. I'd worked out to just set the proxy as part of the msbuild script.
|
For future readers, looking at the code, it appears that only the user-level config works for proxy settings. This matches the behavior I see, at least on dotnet 2.2.401. |
If you specify a configuration file when running nuget.exe some settings in this file are ignored. Especially the "http_proxy" setting has no functionality. It only works when specifying the proxy settings in the default config locations (e.g. %APPDATA%\NuGet\NuGet.Config).
Nuget.exe Version: 2.8.60318.667
Windows 7 Enterprise x64
That makes it imposible to declare different proxies for package restoring. We are running Jenkins builds and some packages are stored on a private nuget repository. Additionally neither pac-Files (Proxy-Auto-Config) nor excluded hosts are supported in the default proxy configuration. With Jenkins the browser proxy settings have no effect, so we have to declare them by config file.
See also the related old issue on codeplex: https://nuget.codeplex.com/workitem/4121
The text was updated successfully, but these errors were encountered: