Visual Studio: Set proxy server for update

Hi,

the update process of Visual Studio uses the .NET class Webclient which takes not care about the proxy set by Internet Explorer or Edge.

The proxy must be set in the devenv.exe.config, vs_installer.exe.config and setup.exe.config in the node. The file usually resides devenv.exe.confi in

C:\Program Files (x86)\Microsoft Visual Studio\%Version%\Community\Common7\IDE

So open the file, it’s a XML format, and navigate to the node. It looks like:

    <system.net>
      <settings>
        <ipv6 enabled="true"/>
      </settings>
    </system.net>

To set a proxy server add the node to

    <system.net>
      <settings>
        <ipv6 enabled="true"/>
      </settings>
      <defaultProxy enabled="true" useDefaultCredentials="true">  
        <proxy bypassonlocal="false" proxyaddress=http://myProxy.myDomain.org:8080 />
      </defaultProxy>     
    </system.net>

vs_installer.exe.config and setup.exe.config in C:\Program Files (x86)\Microsoft Visual Studio\Installer

Both have no node by default. Add it at the end of the file

...
    <system.net>
      <settings>
        <ipv6 enabled="true"/>
      </settings>
      <defaultProxy enabled="true" useDefaultCredentials="true">  
        <proxy bypassonlocal="True" proxyaddress=http://myProxy.myDomain.org:8080 />
      </defaultProxy>     
    </system.net>
</configuration>

Update from Command line

D:\> cd "C:\Program Files (x86)\Microsoft Visual Studio\Installer"
D:\> C:\Program Files (x86)\Microsoft Visual Studio\Installer> vs_installer.exe updateall --quiet --passive

Michael

Leave a Reply Cancel reply