c# - Visual Studio 社区代理

标签 c# windows visual-studio proxy visual-studio-community

我正在尝试在代理后面使用 visual studio 社区,但我一直收到错误。

我已将以下内容添加到 D:\myVisualStudioInstall\Common7\IDE\devenv.exe.config

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

我在启动时遇到错误:

Unrecognized element 'defaultProxy'. (C:\Users\me\AppData\Local\Microsoft\VisualStudio\14.0\devenv.exe.config line 1304)

我哪里出错了?我在网上找到的所有内容都告诉我 defaultProxy 应该是这个元素的名称,但也许对于社区版来说有一些区别?我已经在 Windows 凭据管理器中检查了我的凭据,它似乎可以正常工作,因为 IE 不再提示我提供凭据。

谢谢

最佳答案

defaultProxy元素需要直接位于 system.net 下,而不是在 settings 内。将它移到那里,它将起作用。

关于c# - Visual Studio 社区代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39345249/

相关文章:

c# - 在客户端获取 RadGrid 的列宽

windows - 如何隐藏特定的 Windows 更新?

windows - 如何检查.cmd(批处理脚本)中的Internet连接并根据是否连接WiFi来运行另一个命令?

visual-studio - 有没有办法在 Microsoft Visual Studio 2019 中获取 Github 选项卡

.net - 删除 VB.NET 源代码文件中的所有注释

c# - 绑定(bind)到 BindingList 的 DataGridView 显示空行

c# - 处理 BackGroundWorker 的正确方法

c# - 具有相互身份验证的服务客户端(2 向客户端证书身份验证)

windows - 实现 x86 到 x64 汇编代码切换

visual-studio - 使用 TypeScript 2.1 使 @types 在 Visual Studio 2015 Update 3 中工作