我正在使用 Visual Studio 2015 进行 Xamarin 应用程序开发,并且我在公司代理后面工作,我需要将代理(http 代理)设置为 Visual Studio 2015,那么我怎样才能获得这样的窗口来设置代理?
最佳答案
查找 devenv.exe.config
在您的安装目录中。
现在打开这个文本文件并添加节点 <defaultProxy>
节点内部 <system.net>
.
<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
<proxy bypassonlocal="true" proxyaddress="http://yourproxyaddress.net:8080" />
</defaultProxy>
</system.net>
如果您的代理需要身份验证,您应该将这些作为参数添加到代理 URL 中
<system.net>
<defaultProxy useDefaultCredentials="true" enabled="true">
<proxy bypassonlocal="true" proxyaddress="http://Username:Password@yourproxyaddress.net:8080" />
</defaultProxy>
</system.net>
关于visual-studio-2015 - 如何在 Visual Studio 2015 中设置代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41936478/