Enhanced by Zach Christmas | Original by Saulius Menkevičius
This is a fork of the excellent csharp-language-server project with enhancements for Visual Studio MSBuild support and lazy solution loading.
- ✅ Automatic detection of the installed Visual Studio (2022 or 2026 — Community, Professional, or Build Tools) via vswhere
- ✅ Environment variable integration (
VS170COMNTOOLSand future versions) - ✅ Custom MSBuild path configuration options
- ✅ Intelligent fallback to auto-discovery
- ⚡ On-demand loading - solutions load only when you open C# files
- 🚀 Improved startup performance - no more waiting for all solutions to load
- 🎯 Multi-solution support - handle complex workspaces efficiently
- 💾 Memory optimization - only loads what you're actively working on
# Install as global .NET tool
dotnet tool install --global csharp-ls-vs
# Verify installation
csharp-ls-vs --version# Basic usage
csharp-ls-vs
# With specific solution
csharp-ls-vs --solution MySolution.sln
# With custom MSBuild path (Visual Studio)
csharp-ls-vs --msbuildpath "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin"
# With custom MSBuild executable
csharp-ls-vs --msbuildexepath "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe"Use with the companion VS Code extension: csharp-ls-vs
- .NET 9.0 SDK or later
- Visual Studio Community/Professional (recommended for MSBuild)
- Windows (primary platform, may work on other platforms)
This project is a fork of the outstanding work by:
- Saulius Menkevičius - Original csharp-language-server
- Zach Christmas - Visual Studio MSBuild support and lazy loading features
This project maintains the same MIT license as the original work.
This is a fork with limited support. For general language server issues not related to Visual Studio MSBuild or lazy loading, please check the original project first.
For issues specific to this fork's enhancements, please use the fork's issue tracker.
- Original Language Server: razzmatazz/csharp-language-server
- VS Code Extension Fork: zachristmas/vscode-csharp-ls-vs
- Original VS Code Extension: vytautassurvila/vscode-csharp-ls
Thank you to the original authors for their excellent foundation! 🎉
1.2.4 — Visual Studio 2026 / MSBuild v18 support: the net472 build host now self-aligns its MSBuild dependencies to the installed Visual Studio at startup (via vswhere), fixing the XMakeElements crash when loading old-style .NET Framework solutions on machines with VS 2026. No-op on VS 2022.
See the full CHANGELOG.