Skip to content

bryphe/oni-language-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published