It was not possible to find any installed .NET SDKs.
See original GitHub issueI’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:
- Created 3 years ago
- Comments:11 (4 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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:
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):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 :
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
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.