Skip to content

Cannot start LS on dotnet 8.0 #230

Closed
@BenjaminPalko

Description

@BenjaminPalko

Hi, when starting nvim on dotnet 8.0 I am getting this lsp error message.

[ERROR][2025-05-17 10:47:20] ...p/_transport.lua:36	"rpc"	"csharp-ls"	"stderr"	"You must install or update .NET to run this application.

App: /home/-/.local/share/nvim/mason/packages/csharp-language-server/csharp-ls\nArchitecture: x64
Framework: 'Microsoft.NETCore.App', version '9.0.0' (x64)
.NET location: /home/-/.local/share/mise/installs/dotnet/8.0.409

The following frameworks were found:
  8.0.16 at [/home/-/.local/share/mise/installs/dotnet/8.0.409/shared/Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=9.0.0&arch=x64&rid=linux-x64&os=arch\n"

This is causing a breaking conflict since I need to run dotnet 8.0 for the project I'm developing, the library I'm using does not support dotnet 9.0 and will fail to build if I switch up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions