Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code OmniSharp offline installation?

I'm on computer that doesn't have access to internet, I've installed Visual Studio Code x64, downloaded latest OmniSharp build x64, dropped OmniSharp to Program Files, added OmniSharp to PATH, installed VSCode OmniSharp extension, added "omnisharp.path" to config, however the extension still tryies to download OmniSharp from the internet and not using local installation. What should I do?

EDIT: I tried downloading the OmniSharp ZIP-file from exact location that is written in package.json file and droping it to .omnisharp folder in .vscode\extensions folder, but it still tries to download it.

like image 774
user2102508 Avatar asked Jul 12 '26 12:07

user2102508


1 Answers

Just download from some station with access to internet

  1. Download vscode setup or portable one install setup or extract portable where you want lanch it.

  2. Download omnisharp and debugger and extract it to

  1. %UserProfile%.vscode\extensions\ms-vscode.csharp-1.15.2.omnisharp\1.30.1
  2. %UserProfile%.vscode\extensions\ms-vscode.csharp-1.15.2.debugger

respectively according to paths in config .vscode\extensions\ms-vscode.csharp-1.15.2\package.json

Upd: with time location switched to :

  1. %USERPROFILE%.vscode\extensions\ms-dotnettools.csharp-1.23.3.omnisharp\1.37.2
  2. %USERPROFILE%.vscode\extensions\ms-dotnettools.csharp-1.23.3.debugger

respectively and replace file install.Begin with install.Lock in this folders

like image 197
mdn Avatar answered Jul 15 '26 05:07

mdn