I am trying to use Nuget in VS2010 at work. When I try and download packages from the official feed it always fails with a 403.
I’ve read that Nuget will use the same proxy settings as IE, which is unfortunate for me as my IE is locked down. I can’t change the proxy.
I have fiddled the feedservice urls that are getting bounced, in IE I get an error, in Firefox (with a local proxy.pac defined) the urls resolve fine and I can see the feeds.
Is there any way to manually configure Nuget not to use IE’s settings?
If you can’t get the exception added to your proxy, or just want an immediate solution then edit your Visual studio configuration file (devenv.exe.config) located in your Visual Studio installation directory (eg –
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE) and change/add the<system.net>configuration section to the following, which will let Visual Studio work with the proxy:All you need to do is change the
<Insert proxy address here> to your company’s proxy address. Also depending on your proxy settings you may be able to use Expect100Continue messages and may not need to change that configuration element. You can find more information here