Getting started
Install the language server as a global .NET tool:
dotnet tool install --global cslsStart the language server with:
csls lspThe default csls command and the explicit csls lsp command both serve LSP
over standard input and output. Editors should use csls lsp because the intent
is visible in their configuration.
File-based apps
Section titled “File-based apps”Open a file-based C# app directly or open its containing directory. csls uses
the selected .NET SDK and honors #:package, #:project, #:include,
#:property, and #:sdk directives.
The csls and csls-mcp .NET tool packages are prepared for Windows, Linux,
and macOS on x64 and Arm64. Linux musl and Windows x86 packages are also built
and verified in CI.
Install the separate MCP tool when an MCP client will use the language server:
dotnet tool install --global csls-mcpcsls agent mcp --workspace .