c# - 安装 VSCode 的 C# 扩展时出错

标签 c# visual-studio-code omnisharp

我正在尝试安装 VSCode 扩展 C# for Visual Studio Code (powered by OmniSharp)没有任何成功。在 VSCode 的输出选项卡中,我收到以下错误:

Updating C# dependencies...
Platform: win32, x86_64

Downloading package 'OmniSharp for Windows (.NET 4.6 / x64)'    Retrying from 'https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x64-1.26.3.zip' Downloading package '.NET Core Debugger (Windows / x64)'   Retrying from 'https://vsdebugger.blob.core.windows.net/coreclr-debug-1-13-0/coreclr-debug-win7-x64.zip' 
Installing package 'OmniSharp for Windows (.NET 4.6 / x64)'
Failed at stage: installPackages
Error: end of central directory record signature not found

Finished

最佳答案

根据我在 omnisharp-vscode GitHub 页面上找到的相关问题:

并且知道我位于企业代理后面,我必须在 vscode 中设置 http.proxy 设置,就像在我的 vscode 用户设置中一样:

{
    "http.proxy": "<my-proxy-uri>" // e.g. http://1.2.3.4:55,
}

关于c# - 安装 VSCode 的 C# 扩展时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47507892/

相关文章:

c# - TFS 2012 构建以在日志中打印消息

visual-studio-code - Visual Studio Code - 多个屏幕中同一项目的选项卡(编辑器)

macos - VS Code 找不到 OmniSharp 的 Mono

visual-studio-code - Visual Studio Code 断点警告 : The source code is different from the original version

c++ - 有没有办法在 VSCode Mac 中链接 SFML 库?

c# - 在 Visual Studio Code 中自动添加 NuGet 依赖项和 using 语句?

c# - 如果我内联 HashSet 集合初始化,编译器是否知道只执行一次?

c# - 如何让服务器在客户端连接到它时立即打印通知?

c# - 如何从 Expression<Action<T>> 获取接口(interface)成员名称

code-snippets - 如何在VSCode中添加自定义代码片段?