How to set proxy in visual studio 2015

Saibal Bhaduri picture Saibal Bhaduri · Jan 30, 2017 · Viewed 35.9k times · Source

I'm Using Visual Studio 2015 for Xamarin app development and I'm working behind corporate proxy, I need to set the proxy(http proxy) to the Visual studio 2015, so how could I get such window to set proxy ?

Answer

Svekke picture Svekke · Jan 30, 2017

Find devenv.exe.config in your installation directory.

Now open this text file and add the node <defaultProxy> inside the node <system.net>.

<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
    <proxy bypassonlocal="true" proxyaddress="http://yourproxyaddress.net:8080" />
</defaultProxy>
</system.net>

If your proxy requires authentication, you should add those as parameters in the proxy URL

<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
    <proxy bypassonlocal="true" proxyaddress="http://Username:[email protected]:8080" />
</defaultProxy>
</system.net>