我正在尝试安装 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/