Skip to content

Instantly share code, notes, and snippets.

@ddhira123
Created January 31, 2022 07:04
Show Gist options
  • Save ddhira123/326c99938cd56db104278b1298e433e6 to your computer and use it in GitHub Desktop.
Save ddhira123/326c99938cd56db104278b1298e433e6 to your computer and use it in GitHub Desktop.
When you are behind network (corporate) proxy and you wish to install with Visual Studio Installer, This config may help you.

In the machine.config file under these 2 folders:

  • C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config
  • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config

Add this configuration in the bottom (before the last closing tag):

<system.net>
  <defaultProxy enabled="true" useDefaultCredentials="true">  
    <proxy bypassonlocal="True" proxyaddress="http://domain%5Cusername:password@youproxyaddress:portnumber" />
  </defaultProxy> 
</system.net>

In proxyaddress of the line:

<proxy bypassonlocal="True" proxyaddress="http://domain%5Cusername:password@youproxyaddress:portnumber" />

If your proxy has only host and port, you can simply write

<proxy bypassonlocal="True" proxyaddress="http://youproxyaddress:portnumber" />

Restart the installer and it should be already fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment