No description
  • C# 99%
  • Shell 0.7%
  • PowerShell 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2020-05-21 13:10:14 -04:00
.pipelines Use 3.1 SDK 2020-05-05 19:24:13 -07:00
.vscode Add restore task for VS Code 2017-09-14 13:03:10 -07:00
build Update Roslyn to 3.7.0-2 2020-05-20 14:07:56 -07:00
doc Fix possessives of its 2019-09-11 09:40:30 -04:00
mono-packaging Quote the path to mono 2020-03-12 17:13:35 -07:00
scripts Add ability install multiple SDKs for tests 2020-03-24 20:55:53 -07:00
src Remerge master 2020-05-21 13:10:14 -04:00
test-assets Update global.json 2020-05-12 17:03:12 +02:00
tests Fix EditorConfig tests 2020-05-20 15:31:02 -07:00
tools Upgrade NuGet tools to preview build 2020-03-24 09:31:43 -07:00
.editorconfig clean up .editorconfig 2020-04-04 13:41:22 +02:00
.gitattributes Force LF EOL for sh scripts 2017-10-25 18:26:56 -02:00
.gitignore added test project ProjectWithComplexAnalyzers.csproj 2019-08-12 13:46:51 +02:00
.lgtm making approvals currently set to 1, as well as let :shipit: work because who doesn't love to :shipit:!? 2016-04-29 13:33:04 -04:00
azure-pipelines.yml Use windows-latest pool 2020-05-08 18:03:03 -07:00
blobstring.txt.enc Add blob connection info 2017-12-08 11:13:20 -08:00
build.cake Add ability install multiple SDKs for tests 2020-03-24 20:55:53 -07:00
build.cmd Fix build.cmd to launch powershell with '-NoProfile' flag 2017-04-17 08:27:58 -07:00
build.json updated .net 5.0 sdk for tests 2020-05-12 16:33:29 +02:00
BUILD.md Update Mono minimum version to match README 2020-05-17 10:44:48 -07:00
build.ps1 Futher build performance improvements 2018-04-11 12:18:52 -07:00
build.sh Further updates to the build script to ensure that we build Debug by default and package with the correct names 2018-04-06 13:09:42 -07:00
CHANGELOG.md Merge branch 'master' into lsp-code-actions 2020-05-21 07:51:00 +02:00
CONTRIBUTING.md removed jabbr link 2019-10-23 15:18:15 +02:00
Directory.Build.props clean up 2018-06-18 21:10:27 +02:00
Directory.Build.targets clean up 2018-06-18 21:10:27 +02:00
GitVersion.yml ignore shas creating incorrect version numbers 2019-04-17 19:48:15 -04:00
global.json Use 3.1 SDK 2020-05-05 19:24:13 -07:00
license.md Updated license to include .net foundation 2020-03-29 14:02:02 -04:00
NuGet.Config Removed vs-editor feed 2020-04-22 09:27:25 +02:00
omnisharp.json Ensure all test projects are also using netcoreapp3.1. 2020-05-07 23:23:01 -07:00
OmniSharp.sln removed dotnet project system 2019-07-11 08:43:19 +02:00
README.md Updated license to include .net foundation 2020-03-29 14:02:02 -04:00

omnisharp-roslyn

Build Status

Introduction

OmniSharp is a .NET development platform based on Roslyn workspaces. It provides project dependencies and C# language services to various IDEs and plugins.

OmniSharp is built with the .NET Core SDK on Windows and Mono on OSX/Linux. It targets the net472 target framework. For platforms other than Windows, OmniSharp ships with an embedded Mono which is based on version 5.18.0, includes MSBuild 16.3.0 and is provisioned during the build script. If Mono is globally installed on the system, OmniSharp will prefer it over the embedded version, however version >=6.4.0 is required (the lowest version with at least MSBuild 16.3.0).

For Arch Linux users, you need package msbuild-16-bin (>= 16.3).

In addition, if you need the HTTP interface and you want to run on Linux, you'll also need to make sure that you have libuv installed. See also https://github.com/OmniSharp/omnisharp-roslyn/issues/1202#issuecomment-421543905 .

What's new

See our change log for all of the updates.

Using OmniSharp

OmniSharp ships in two flavors:

  • Stdio server
  • HTTP server

Prerelease Versions

Pre-release versions are available in azure storage, they can be viewed here.

All changes to master will be pushed to this feed and will be made available with the following convention: https://roslynomnisharp.blob.core.windows.net/releases/{version}/{packagename}-{os/arch}.{ext}

  • Version is auto incremented and is visible in the travis or appveyor build output
  • Package Name would be either omnisharp or omnisharp.http
  • os/arch will be one of the following:
    • win-x64
    • win-x86
    • linux-x64
    • linux-x86
    • osx
    • mono (Requires global mono installed)
  • Extensions are archive specific, windows will be zip and all others will be tar.gz.

Building

On Windows:

> ./build.ps1

On Linux / Unix:

$ ./build.sh

You can find the output under artifacts/publish/OmniSharp/<runtime id>/<target framework>/.

The executable is either OmniSharp.exe or OmniSharp.

For more details, see Build.

VS Code

Add the following setting to your User Settings or Workspace Settings.

{
  "omnisharp.path": "<Path to the omnisharp executable>"
}

The above option can also be set to:

  • "latest" - To consume the latest build from the master branch
  • A specific version number like 1.29.2-beta.60

In order to be able to attach a debugger, add the following setting:

{
  "omnisharp.waitForDebugger": true
}

This will print the OmniSharp process ID in the VS Code OmniSharp output panel and pause the start of the server until a debugger is attached to this process. This is equivalent to launching OmniSharp from a command line with the --debug flag.

Configuration

OmniSharp provides a rich set of hierarchical configuration options, controlled via startup arguments, environment variables and omnisharp.json file. For more details please visit the Configuration Options section of the wiki.

Help wanted!

We have slack room as well. Get yourself invited: here

License

Copyright © .NET Foundation, and contributors.

OmniSharp is provided as-is under the MIT license. For more information see LICENSE.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

Contribution License Agreement

By signing the CLA, the community is free to use your contribution to .NET Foundation projects.

.NET Foundation

This project is supported by the .NET Foundation.