No frameworks were found when dotnet info outputs one
See original GitHub issueWhen running csharp-ls
I am presented with this error:
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '6.0.0' (x64) was not found.
- No frameworks were found.
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=fedora.35-x64
However my dotnet --info
output is this:
.NET SDK (reflecting any global.json):
Version: 6.0.100
Commit: 9e8b04bbff
Runtime Environment:
OS Name: fedora
OS Version: 35
OS Platform: Linux
RID: fedora.35-x64
Base Path: /home/wizardlink/.dotnet/sdk/6.0.100/
Host (useful for support):
Version: 6.0.0
Commit: 4822e3c3aa
.NET SDKs installed:
5.0.403 [/home/wizardlink/.dotnet/sdk]
6.0.100 [/home/wizardlink/.dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.12 [/home/wizardlink/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0 [/home/wizardlink/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.12 [/home/wizardlink/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0 [/home/wizardlink/.dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
For reference, dotnet
was installed manually following their documentation, I don’t see why this issue is ocurring so I decided to open an issue as I’m not that knowledgeable with the dotnet
toolchain.
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (6 by maintainers)
Top Results From Across the Web
dotnet watch - no frameworks found
Basically dotnet run starts the app as expected but dotnet watch fails with "no frameworks were found". Even dotnet watch --help fails with ......
Read more >Dotnet in Arch Linux saying "No Frameworks were found"
The error message is saying you're missing Micorosoft.AspNetCore.App framework which is needed to run ASP.NET Core applications. Sure enough ...
Read more >The framework 'Microsoft.AspNetCore.App', version '6.0.0' ...
- No frameworks were found. You can resolve the problem by installing the specified framework and/or SDK. The specified framework can be found ......
Read more >How I Fixed: No frameworks were found in JetBrains Rider
For Ubuntu the one I installed was the ASP.NET Core Runtime 7.0.2 . This could then be validated as such: dotnet --info .NET...
Read more >Troubleshoot app launch failures
NET installation is found—is searched. When an application is run through dotnet , frameworks are only searched for in subdirectories relative ...
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
yeah… I’ll just close this as i’m don’t have time to cover this case… except maybe if it will repeat then maybe we’ll have to do some diagnostics on startup
I’m not sure how well it will work, but @josteink says it works for him on net48 projects:
you may need to upgrade to the project to net48 though
what happens if you run csharp-ls on project dir on your shell?