csharp-ls not working with .NET SDK (7.0.100)
See original GitHub issueI’m using archlinux and dotnet has been updating. Even if I install dotnet-sdk-6.0 (v 6.0.11) I get the following error.
"rpc" "csharp-ls" "stderr" "You must install or update .NET to run this application.
App: /home/jlaunay/.local/share/nvim/mason/packages/csharp-language-server/csharp-ls
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet
The following frameworks were found:
7.0.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=arch-x64
# /usr/share/dotnet/dotnet --list-sdks
6.0.111 [/usr/share/dotnet/sdk]
7.0.100 [/usr/share/dotnet/sdk]
Issue Analytics
- State:
- Created 10 months ago
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Cannot load or run lots of my projects in my solution after ...
Base Path: C:\Program Files\dotnet\sdk\7.0.100\. Host: Version: 7.0.0. Architecture: x64. Commit: d099f075e4 .NET SDKs installed:
Read more >NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >NET 7.0 Framework option is not available after installation ...
I downloaded the .NET 7.0 from here. And installed it on my Windows machine but while creating the project, I am not able...
Read more >SDK Resolver Failure - Net 7 - Net 6
I experienced a similar problem. I uninstalled the 7.0.100-preview.5.22307.18 sdk using add remove programs and then changed the ...
Read more >Visual Studio 2019 unable to locate .Net Core SDK
Step 1) First run dotnet --list-sdks from the command line (as in Grzegorz Smulko's answer). Take note of the greatest version number.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK, I have released a new version 0.6.0 on nuget:
lets see if this fixes things for you
ok, I’ve added more logging to what MSBuildLocator returns as possible SDK versions when registering sdk for a project and now I get this:
but!
dotnet --list-sdks
on this directory returns:though we do have global.json at the top of the project:
will need to investigate what it is that triggers msbuildlocator not to recognize 7.0.x sdks