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.

It was not possible to find any installed .NET SDKs.

See original GitHub issue

I’m trying to work on dotnet 5 project from my Debian Linux OS.

Here’s the error I’m getting from Omnisharp log:

[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/dstpierre/src/labs/ProfilNav/ProfilNav.csproj
It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
  https://aka.ms/dotnet-download

I have one dotnet SDK installed:

$ which dotnet
/snap/bin/dotnet
$ dotnet --version
5.0.103

I suppose the extension has some kind of preset to search for dotnet SDK, like in /usr/local/bin for instance.

I’ve tried to find a setting I could change and could not find anything related to the path of the dotnet installed.

What can I do from here? How can I tell the extension where to look for the installed dotnet?

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
attairsilvacommented, Feb 10, 2022

Para dar certo no meu caso, eu removi a instalação que fiz via snap, e como @dstpierre sugeriu fiz pelo apt:

# sudo snap remove dotnet-sdk

Instalação pelo APT:

# wget https://packages.microsoft.com/config/ubuntu/21.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
# sudo dpkg -i packages-microsoft-prod.deb
# sudo apt-get update; 
# sudo apt-get install -y apt-transport-https
# sudo apt-get update 
# sudo apt-get install -y dotnet-sdk-6.0

Em seguida configurei o path

# sudo nano ~/.bashrc Inclui no final os caminhos (para o meu Ubuntu 20.04, foi colocado dentro do usr/share o dotnet):

DOTNET_ROOT=/usr/share/dotnet/sdk/6.0.102
export PATH=$PATH:$DOTNET_ROOT/current

No final carreguei as variaveis de ambiente com

# source ~/.bashrc

Depois inclui no settings.json do VSCODE para que fosse baixada uma versão anterior do OmniSharp ao reinicia-lo :

    "omnisharp.useModernNet": true,
    "omnisharp.path": "latest"
1reaction
dstpierrecommented, May 11, 2021

I’ve decided to regive another try, this time I installed dotnet-core SDK via asdf, I’ve create the symlink like @rhyek said it was working for them, here’s my link

$ ls -al /usr/local/bin/dotnet
lrwxrwxrwx 1 root root 34 May 11 14:52 /usr/local/bin/dotnet -> /home/dstpierre/.asdf/shims/dotnet
$ which dotnet
/home/dstpierre/.asdf/shims/dotnet

I’ve added with the omnisharp.json workaround that @JoeRobich mentioned.

I’ve always the same issue. I just re-installed the extension and all dotnet since last February, but still the same issues.

Any pointer? We have old .NET 4.5 ASP.NET code bases that I’d like to migrate, but can’t figure how to have the extension to find the damn .NET core version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: It was not possible to find any installed .NET Core SDKs
For me it happened when I had wrong ENTRYPOINT in my DOCKERFILE # Build runtime image FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 WORKDIR ...
Read more >
It was not possible to find any installed .NET Core SDKs #6095
Problem encountered on https://dotnet.microsoft.com/learn/aspnet/hello-world-tutorial/create Operating System: windows 10 I trying to do the ...
Read more >
Sitecore CLI Error: It was not possible to find any installed ...
In Visual Studio 2017 or 2019: Navigate to Tools > NuGet Package Manager > Package Manager Settings > Package Sources and remove the...
Read more >
Azure App Service Window Container Fail to start (.Net Core ...
Azure App Service Window Container Fail to start (.Net Core Sdk not found) · FROM mcr.microsoft.com/dotnet/aspnet:3.1-nanoserver-1809 AS base ...
Read more >
C# Archive - TechOverflow -
NET SDK command: It was not possible to find any installed .NET SDKs. Install a .NET SDK from ...
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