/csharp-lsp:csharp-lspfrom MSApps C# LSP
Provides real-time C# code intelligence via OmniSharp (OmniSharp-Roslyn) in LSP mode. Delivers Roslyn diagnostics, go-to-definition, find-references, hover type info, and symbol lookup for .cs/.csx files. Useful for semantic analysis, refactoring, and code review tasks.
Ships in MSApps C# LSP. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The C# LSP plugin delivers real-time code intelligence for C# and .NET projects by connecting Claude to omnisharp — the Roslyn-based language server that ships as a standalone .NET tool. It provides Roslyn-grade diagnostics, navigation, and symbol information for .cs and .csx files without modifying code or producing side effects.
using directives, analyzer rules (Roslyn, StyleCop, .NET built-in)using aliases, partial classes, [Generator] source-generated members, metadata references) and find-references across the whole solution graph.sln / .slnx / bare .csproj roots — no Visual Studio requiredomnisharp.json can override it)The plugin operates in three phases (same contract as swift-lsp / kotlin-lsp / python-lsp / typescript-lsp):
.cs / .csx files; the server returns updated diagnostics as the buffer changesPrerequisites:
PATH (for OmniSharp's runtime)omnisharp (OmniSharp-Roslyn) on PATHInstall:
# macOS (Homebrew)
brew install omnisharp
# Linux / Windows / macOS — GitHub releases
# Download the latest omnisharp-osx-arm64-net6.0.tar.gz (or your platform)
# from https://github.com/OmniSharp/omnisharp-roslyn/releases
# Unpack and symlink/move `omnisharp` onto PATH.
# Alternative: .NET global tool
dotnet tool install -g Microsoft.OmniSharp.DotNet.GlobalTool
Verify installation with:
omnisharp --help | grep -i lsp
# Should list: -lsp, --languageserver Use Language Server Protocol.
| Extension | Language ID | Notes |
|---|---|---|
.cs | csharp | Standard C# source |
.csx | csharp | C# script files (dotnet script / Roslyn scripting) |
OmniSharp picks up configuration from omnisharp.json in the solution root and honors global.json (SDK pin), .editorconfig, and per-project .ruleset files automatically.
Minimal omnisharp.json:
{
"RoslynExtensionsOptions": {
"EnableAnalyzersSupport": true,
"EnableImportCompletion": true,
"EnableDecompilationSupport": false
},
"FormattingOptions": {
"EnableEditorConfigSupport": true
},
"MsBuild": {
"LoadProjectsOnDemand": false,
"EnablePackageAutoRestore": true
}
}
For monorepos with multiple independent solutions, launch one LSP instance per .sln. Single-root setups auto-detect the solution by walking up from the edited file.
global.json pins an SDK OmniSharp can't find. Either dotnet --list-sdks and install the pinned version, or loosen the pin with "rollForward": "latestFeature"."LoadProjectsOnDemand": true in omnisharp.json for repos with >50 projects."EnableAnalyzersSupport": true is in your omnisharp.json. Source generators run as analyzers; they're off by default in older OmniSharp builds.#nullable enable not flagging anything — the project needs <Nullable>enable</Nullable> in the .csproj, not just the pragma. OmniSharp respects the project setting first..cshtml) files — not served by this plugin; OmniSharp does not provide Razor language services..vb / .fs files flagged as errors — OmniSharp is C#-only. VB.NET and F# need sibling plugins.EnableAnalyzersSupport: true. They can add real latency; narrow include rules in omnisharp.json if it's painful.dotnet build in another terminal won't interfere, but a clobbered obj/ mid-session may force an OmniSharp restart.This plugin is the C# sibling of:
swift-lsp — SourceKit-LSP for iOS/macOSkotlin-lsp — kotlin-language-server for Android/JVMpython-lsp — pyright-langserver for Pythontypescript-lsp — typescript-language-server for TypeScript/JavaScriptAll five expose the same LSP operations (diagnostics, go-to-definition, find-references, hover), so a multi-language repo can be navigated the same way in each language.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub msapps-mobile/claude-plugins --plugin csharp-lspOther plugins' skills for the same job