Configuration settings getting erased

Topics: General
Jul 3, 2013 at 5:44 AM
I've been having trouble getting through our proxy to download packages via nuget. Finally figured out that I can achieve this by adding this to NuGet.config in the <user>\application data\NuGet folder:
<add key="http_proxy" value="www-proxy:80" />

However when I go to VisualStudio 2010 > Tools > Options > Package Manager and use the Clear Package Cache option any custom settings in the configuration file are erased.
  1. Why?
  2. Can I prevent this?
Jul 3, 2013 at 5:14 PM
Hmm, this could be a bug. Could you file a bug please?

As a temporary workaround, you can set an environment variable with the same key 'http_proxy'. NuGet will read it if it can't find the key in the config file.
Jul 4, 2013 at 3:23 AM
I upgraded to the lastest version (2.6, was on 2.5) and the problem went away