sudo apt install clangd-18
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-18 100Install .NET SDK, for example using the "scripted install" (dotnet-install.sh).
See: https://learn.microsoft.com/en-us/dotnet/core/install/linux
For example, to install .NET 8.0:
./dotnet-install.sh --version 8.0.421This installs the SDK into the directory ~/.dotnet.
Then, to install csharp-ls:
dotnet tool install --global csharp-lsDepending on the .NET SDK version, the csharp-ls version may need to be specified. Per the
releases page, the latest csharp-ls version that
supports .NET 8.0 is version 0.16.0:
dotnet tool install --global --version 0.16.0 csharp-ls