pnschofield
pnschofield

Reputation: 899

What's the command line switch to get NuGet.exe to completely bypass the http proxy?

I've found plenty of documentation on command line switches for specifying an HTTP proxy for NuGet.exe to use when fetching packages.

What is the switch to tell NuGet.exe to completely bypass the currently-configured http proxy? I am going to be automating NuGet to run on a number of machines, and thus I do not want to manually configure the proxy settings on each machine, but instead specify it in the NuGet.exe commandline.

Upvotes: 0

Views: 729

Answers (1)

Pavel Bakshy
Pavel Bakshy

Reputation: 7747

As I know there is no command in command line tool to do this. As a workaround you can prepare few different NuGet.config-s for different types of machines and just copy it to %APPDATA%\NuGet\NuGet.Config. But in this case you solutions with enabled Package Restore must not have proxy settings in their .nuget\NuGet.config

Upvotes: 2

Related Questions