question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No frameworks were found when dotnet info outputs one

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
razzmatazzcommented, Dec 4, 2021

Should I close this issue @razzmatazz or you want to investigate further on why that is the case?

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

1reaction
razzmatazzcommented, Dec 3, 2021

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found