C# Language Plugin for Oni
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.
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.
- Goto Definition
- Error Highlights
- Code Completion
- 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.