VS Code offline configuration of omnisharp and debugger, omnisharpdebugger
I have been paying attention to Microsoft dotnet core for more than a year and recently started to use it. Because our development environment cannot connect to the Internet, many plug-ins and configurations need to be installed offline, here we will share some of the plug-ins I have installed offline for your reference.
My installation environment is windows 7X64
VS Code version: ms-vscode.csharp-1.14.0
Dotnet Core Sdk: dotnet-sdk-2.1.101-win-x64
Asp dotnet core: aspNetCore.2.0.6.RuntimePackageStore _ x64
The installation directory of the VS Code plug-in is in the ". vscode" directory of the currently logged-on user: C: \ Users \ *** \. vscode \ extensions
After installing the C # Plug-in for VSCode, the "ms-vscode.csharp-1.14.0" directory is generated, full path: C: \ Users \ *** \. vscode \ extensions \ ms-vscode.csharp-1.14.0
When you open the C # project for the first time, you need to download omnisharp and debugger. to download and install the project online, you need to wait for the installation to complete.
For offline download, see the following content:
Open the project. json file under the ms-vscode.csharp-1.14.0 directory, find runtimeDependencies,
Omnisharp:
Debugger:
Download the zip package offline according to the download path in, decompress the zip package to the ". omnisharp" and ". debugger" folders under the ms-vscode.csharp-1.14.0 directory;
Create an empty install. LOCK file in the ms-vscode.csharp-1.14.0 directory
Re-open the VSCode C # project and you can run and debug it.
Note 1: how to create the. omnisharp and. debugger folders:
Create a folder> enter a file name. For file names starting with a dot, add a dot after the file name, that is,. omnisharp. And. debugger.
After you press enter, create the. omnisharp and. debugger folders.
NOTE 2: refer to the following blog post during the configuration process. Thank you to the blogger.
Http://www.lishewen.com/post/vscode-omnisharp-offline-configuration