我正试图用VScode建立unity。我被告知要安装C#扩展,使其自动完成unitys代码,但当我尝试安装C#时,它出错了,这是错误,我在linux系统上,我不知道这是否与它有关。
Installing C# dependencies...
Platform: linux, x86_64, name=manjaro, version=unknown
Downloading package '.NET Core Debugger (linux / x64)' Failed to download from https://github.com/Samsung/netcoredbg/releases/download/1.2.0-825/netcoredbg-linux-bionic-amd64.tar.gz. Error code '404')
Retrying from 'https://web.archive.org/web/20201125201611/https://github-production-release-asset-2e65be.s3.amazonaws.com/113926796/2a979180-2f1f-11eb-8254-5746e29dc86d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201125%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T201611Z&X-Amz-Expires=300&X-Amz-Signature=16e82fadc53b2c8965a4921f7b4241df4b7d8ec1366d08a2e47d5ad840c80444&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=113926796&response-content-disposition=attachment%3B%20filename%3Dnetcoredbg-linux-bionic-amd64.tar.gz&response-content-type=application%2Foctet-stream' (NaN KB) Done!
Installing package '.NET Core Debugger (linux / x64)'
Failed at stage: installPackage
C# Extension was unable to install its dependencies. Please check your internet connection. If you use a proxy server, please visit https://aka.ms/VsCodeCsharpNetworking
我怎么能解决这个问题,它不会安装,一直在尝试安装,但每次都失败了,它说了一些关于我的连接的事情,但它只是很好,所以…
按照以下说明操作:
安装和配置Linux 的VSCode
完成所有这些之后,如果intellisense无法打开VS代码,请转到菜单"文件"-"首选项"-"设置"-"扩展名"-"C#配置"查找";Omnisharp:Use Global Mono";,并将其设置为"0";总是";。
之后关闭VSCode,然后重新打开它。