dotrush-cc
A Claude Code marketplace containing the dotrush plugin: the DotRush
Roslyn language server wired into Claude Code's LSP tool for C#/.NET, plus a stdio proxy that can
inject custom LSP messages into the running server and read the responses, and skills for semantic renames,
solution diagnostics, and CPU, allocation and managed-memory profiling.
The DotRush server is not committed here. The DotRush version is pinned in
dotrush-version.json, and on first use the plugin downloads that
release's platform-neutral bundles (or builds them from source when the pin is a commit).
Install
# 1. add this marketplace (GitHub shorthand, or any git URL)
claude plugin marketplace add nevse/dotrush-cc
# e.g. claude plugin marketplace add https://github.com/nevse/dotrush-cc.git
# 2. install the plugin
claude plugin install dotrush@dotrush-cc
# 3. restart Claude Code. On first C# LSP use, the pinned DotRush server installs into the
# plugin's data dir (${CLAUDE_PLUGIN_DATA}/server): downloaded from its release, or built
# from source when the pin is not a release with bundles (git + .NET SDK, a few minutes).
Or enable it declaratively in .claude/settings.json:
{
"extraKnownMarketplaces": {
"dotrush-cc": { "source": { "source": "github", "repo": "nevse/dotrush-cc" } }
},
"enabledPlugins": { "dotrush@dotrush-cc": true }
}
Requirements
curl and unzip to download DotRush release bundles, or git to build DotRush when the pin is not such a release
python3 (the proxy is a stdlib-only Python 3 script)
- A .NET 10 SDK on PATH (DotRush loads/analyzes MSBuild projects, runs on .NET 10+, and builds from source with it;
the plugin also builds its small C# CLI with it on first use, used by the rename, diagnostics and project-picking
skills)
shasum or sha256sum (the CLI wrapper hashes its sources to pick the build directory)
Quick start after install
- Restart Claude Code; the C# LSP server loads on first use (installing the pinned DotRush server once).
- Point DotRush at your project — ask Claude to "set up the DotRush project" (the
dotrush-pick-project
skill). It finds your .sln/.slnx/.csproj, asks which to use, applies it live, and remembers the
choice — no dotrush.config.json needed, nothing written into your repo.
- Verify via
/plugin → Installed → dotrush (and the Errors tab). There is no /lsp command.
- See
plugins/dotrush/README.md for capabilities, the injection FIFO,
on-demand diagnostics, semantic rename, the request channel, live reconfigure/reload without a restart,
and .NET profiling.
Usage examples
You talk to Claude in plain language; the plugin supplies the LSP server and the skills behind it.
Pick the project when the workspace has several solutions (a single one loads on its own), or when queries
return "No symbols found":
set up the DotRush project
Claude lists the .sln/.slnx/.csproj files it finds, asks which one to load, and applies the choice without a restart.
Navigate and understand code — answered by DotRush rather than by grepping text:
where is OrderService.PlaceOrder called from?
find all implementations of IPaymentGateway
what type does CreateClient() return in Startup.cs, and where is it defined?
rename-safe check: list every reference to LegacyMapper before I delete it
Behind these are findReferences, goToImplementation, hover, goToDefinition, documentSymbol and
workspaceSymbol. Call hierarchy isn't available, so "who calls X" is answered from references.
Rename a symbol across the solution:
rename OrderService.PlaceOrder to SubmitOrder
Claude locates the method, asks DotRush for the Roslyn rename, and shows you the edit count per file and the diff.
Nothing is written until you confirm, and a file edited since the preview makes it stop and preview again. Every
file is prepared before any is replaced, so a refusal changes nothing; should replacing them fail part way, it names
exactly which files changed and which did not. Same-named members of other types stay as they are. Overloads, strings, comments
and file names are not renamed (the dotrush-rename skill).
Profile CPU of a running app:
my API is at 100% CPU under load — profile it for 30 seconds while I hit /orders
Claude finds the process (or asks which one), captures a dotnet-trace, and reports the hottest methods
with their exclusive and inclusive time, pointing out where JIT inlining moved samples into a caller.
Check whether GC is the problem:
requests stall every few seconds — is it the GC?