Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.38 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.38 KB

oni-language-csharp

C# Language Plugin for Oni

screenshot

C# support for Oni uses the OmniSharp Node Client which provides language capabilities for both .NET and Mono. For it to work correctly, you need to have a valid .csproj file with any dependent packages (ie, Nuget) installed. The project should also build and compile.

Usage

To get started:

  • Clone repository into your oni plugin path (~/.oni/plugins)
  • Run npm install in the cloned path
  • Restart Oni

For the language server to work correctly, the following conditions must be met:

  • You have a valid .csproj file with any dependent packages (ie, NuGet) installed.
  • The project must have been built at least once.

Features

  • Goto Definition
  • Error Highlights
  • Code Completion

Known Issues

  • If you are using the .NET Core CLI, make sure to run dotnet restore on your project.
  • On Windows, you must run Oni as an administrator the first time using the C# language service. This is tracked by issue #423.
  • On all platforms, the C# language service takes time to start up, especially the first time as it is downloading the appropriate runtime environment. You can open up the developer tools (Help -> Developer Tools) to see the logging from the language service.