Nuget behind corporate proxy

If you working behind a corporate proxy, and want to connect to Nuget’s public facing repository, you might need to change nuget settings.

One of the ways of adding the proxy settings is to go to %appdata%/nuget   and add the following properties:

<configuration>
    <!-- stuff -->
    <config>  
      <add key="http_proxy" value="http://my.proxy.address:port" />
    </config>
    <!-- stuff -->
</configuration>

Some people might need to specify username and password as well:

<configuration>
    <!-- stuff -->
    <config>
        <add key="http_proxy" value="http://my.proxy.address:port" />
        <add key="http_proxy.user" value="mydomain\myUserName" />
        <add key="http_proxy.password" value="base64encodedHopefullyEncryptedPassword" />
    </config>
    <!-- stuff -->
</configuration>