如何在 Visual Studio 2015 中设置代理 [英] How to set proxy in visual studio 2015

查看:105
本文介绍了如何在 Visual Studio 2015 中设置代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio 2015 进行 Xamarin 应用程序开发并且我在公司代理后面工作,我需要将代理(http 代理)设置为 Visual Studio 2015,那么我怎样才能获得这样的窗口来设置代理?

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 ?

推荐答案

在您的安装目录中找到 devenv.exe.config.

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>

如果您的代理需要身份验证,您应该将这些作为参数添加到代理 URL 中

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:Password@yourproxyaddress.net:8080" />
</defaultProxy>
</system.net>

这篇关于如何在 Visual Studio 2015 中设置代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆