I've been trying to setup roslyn.nvim with rzls.nvim on my neovim for a while to work with .NET, C# and Blazor. But I've been facing some frustrating problems, I'm using WSL Ubuntu 24.04, a neovim appimage v0.11.5 with the Lazy plugin manager. I've been trying to install the .NET 10 version through the install script, it says that I've installed it, but it doesn't appear when I run `dotnet sdk check` only the version 9.0.112 show up and maybe this .NET 10 version installation might have broken my configuration, but I don't know.
Previously I was facing a Predefined type 'system.boolean' is not defined or imported roslyn nvim, but in every line for every type. Then I removed my custom roslyn.lua plugin that had a dependency with rzls and now I'm trying to use the nvim-lspconfig configuration for roslyn, just to make it work, but it is not, I have this message when I run :checkhealth vim.lsp the roslyn_ls lsp is not attached and has this message - ⚠️ WARNING 'Microsoft.CodeAnalysis.LanguageServer' is not executable. Configuration will not be used. Here is my mason.lua file in my plugins folder:
return {
"mason-org/mason-lspconfig.nvim",
opts = {},
event = { "BufReadPre", "BufNewFile" },
dependencies = {
{ "neovim/nvim-lspconfig" },
{
"mason-org/mason.nvim",
opts = {
registries = {
"github:mason-org/mason-registry",
"github:Crashdummyy/mason-registry",
},
ui = {
backdrop = 100,
},
ensure_installed = {
"lua-language-server",
"xmlformatter",
"csharpier",
"prettier",
"stylua",
"html-lsp",
"css-lsp",
"tailwindcss",
"eslint-lsp",
"typescript-language-server",
"json-lsp",
"roslyn",
"rzls",
},
},
cmd = "Mason",
},
},
}
If anybody has instructions on how can I achieve a good workflow experience with .NET and Blazor with neovim, please share your steps and thank you.