The OmniSharp installer scripts are used by OmniSharp-vim to automate the installation and updating of the OmniSharp-Rosyln server. There is a script for Linux, macOS and Cygwin/WSL, and another for Microsoft Windows.
Works on: Linux, Apple macOS, Cygwin and Windows Subsystem for Linux.
./omnisharp-manager.sh [-v VERSION] [-l PATH] [-HMuh]
Option | Description |
---|---|
-v VERSION |
Version number of the server to install (defaults to the latest verison). |
-l PATH |
Location to install the server to (defaults to $HOME/.omnisharp/ ). |
-H |
Install the HTTP variant of the server (if not given, the stdio variant will be installed). |
-M |
Use the system Mono installation rather than the one packaged with OmniSharp-Roslyn. |
-u |
Display simple usage information. |
-h |
Display this help message. |
Works on: Microsoft Windows.
.\omnisharp-manager.ps1 [-v VERSION] [-l PATH] [-Hu]
Option | Description |
---|---|
-v VERSION |
Version number of server to install (defaults to the latest version). |
-l PATH |
Location to install the server to (defaults to %USERPROFILE%\.omnisharp\ ). |
-H |
Install the HTTP variant of the server (if not given, the stdio variant will be installed). |
-u |
Display simple usage information. |
After downloading and installing the server the script will check for the OmniSharp.Roslyn.dll
library in the install directory. If it locates the file an exit code of 0
will be returned. If it does not it will return a 1
. You can check exit codes in PowerShell by running $LASTEXITCODE
in the console after running the script.
In PowerShell, the following will install version 1.32.1 of the HTTP OmniSharp Roslyn server in the %USERPROFILE%\.omnisharp\omnisharp-roslyn
directory.
cd "C:\Users\My Name\vimfiles\pack\plugins\opt\omnisharp-vim" # Navigate to the OmniSharp-vim plugin directory
.\installer\omnisharp-manager.ps1 -v "v1.32.1" -H -l "$Env:USERPROFILE\.omnisharp\omnisharp-roslyn"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。