1 Star 0 Fork 0

prape/omnisharp-vim

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

OmniSharp-Roslyn server management scripts

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.

Unix-like OSs

Works on: Linux, Apple macOS, Cygwin and Windows Subsystem for Linux.

Usage

./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.

Microsoft Windows

Works on: Microsoft Windows.

Usage

.\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.

Output

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.

Examples

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"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/prape/omnisharp-vim.git
git@gitee.com:prape/omnisharp-vim.git
prape
omnisharp-vim
omnisharp-vim
master

搜索帮助