VsCode 手动配置omnisharp、.NET Core Debugger、razor
1.打开C:\Users\Administrator\.vscode\extensions\ms-vscode.csharp-1.21.3\package.json
2.找到各个包的下载地址并下载,如下:
"runtimeDependencies": [
{
"id": "OmniSharp",
"description": "OmniSharp for Windows (.NET 4.6 / x86)",
"url": "https://download.visualstudio.microsoft.com/download/pr/7ae0ec86-b4ac-40fd-808d-86fad5d8c215/4cfe251879a7e939480d235a491bb0ba/omnisharp-win-x86-1.34.3.zip",
"fallbackUrl": "https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x86-1.34.3.zip",
"installPath": ".omnisharp/1.34.3",
"platforms": [
"win32"
],
"architectures": [
"x86"
],
"installTestPath": "./.omnisharp/1.34.3/OmniSharp.exe",
"platformId": "win-x86",
"integrity": "EEDAE9A5B6BF5D0244A950A4DD01EE251B8B022DF87251469510A42330EDBA61"
},
{
"id": "OmniSharp",
"description": "OmniSharp for Windows (.NET 4.6 / x64)",
"url": "https://download.visualstudio.microsoft.com/download/pr/7ae0ec86-b4ac-40fd-808d-86fad5d8c215/b930613106fc39204deb1fe4c83a0073/omnisharp-win-x64-1.34.3.zip",
"fallbackUrl": "https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x64-1.34.3.zip",
"installPath": ".omnisharp/1.34.3",
"platforms": [
"win32"
],
"architectures": [
"x86_64"
],
"installTestPath": "./.omnisharp/1.34.3/OmniSharp.exe",
"platformId": "win-x64",
"integrity": "07D96BFBE47705FB90D2E52E7BA3656D41C8E6EB2E2740DB61DEE53AF2E5CF91"
},
//...........省略............
3.如下图在C:\Users\Administrator.vscode\extensions\ms-vscode.csharp-1.21.3目录创建文件夹(创建以点开头命名的文件夹时在后面再加一个点,如“.debugger.”,".omnisharp."),并解压和创建install.LOCK空文件。