OmniSharp can't fiind sdks, sometimes change some setting flower issues can fix it, but next version of omnisharp or C# extension or dotnet-sdk all will be break, how omnisharp can work like that worse. And now I have to say that Java extension works more and more better than C# extension.
dotnet --list-sdks
3.0.101 [C:\Users\wenqi\AppData\Local\Scoop\apps\dotnet-sdk\current\sdk]OmniSharp log
Starting OmniSharp server at 12/10/2019, 3:38:25 PM
Target: c:\Users**\Source\Temp\blazorTest
OmniSharp server started.
Path: C:\Users***.vscode\extensions\ms-vscode.csharp-1.21.8.omnisharp\1.34.8\OmniSharp.exe
PID: 13428
Starting OmniSharp on Windows 6.2.9200.0 (x64)
DotNetPath set to dotnet
Located 1 MSBuild instance(s)
1: StandAlone 16.3 - "c:\Users\***\.vscode\extensions\ms-vscode.csharp-1.21.8\.omnisharp\1.34.8\.msbuild\Current\Bin"
MSBUILD_EXE_PATH environment variable set to 'c:\Users\***\.vscode\extensions\ms-vscode.csharp-1.21.8\.omnisharp\1.34.8\.msbuild\Current\Bin\MSBuild.exe'
Registered MSBuild instance: StandAlone 16.3 - "c:\Users\***\.vscode\extensions\ms-vscode.csharp-1.21.8\.omnisharp\1.34.8\.msbuild\Current\Bin"
CscToolExe = csc.exe
CscToolPath = c:\Users\****\.vscode\extensions\ms-vscode.csharp-1.21.8\.omnisharp\1.34.8\.msbuild\Current\Bin\Roslyn
MSBuildExtensionsPath = c:\Users\***\.vscode\extensions\ms-vscode.csharp-1.21.8\.omnisharp\1.34.8\.msbuild
MSBuildToolsPath = c:\Users\***\.vscode\extensions\ms-vscode.csharp-1.21.8\.omnisharp\1.34.8\.msbuild\Current\Bin
Detecting Cake files in 'c:\Users\wenqi\Source\Temp\blazorTest'.
Could not find any Cake files
No solution files found in 'c:\Users\wenqi\Source\Temp\blazorTest'
Queue project update for 'c:\Users\wenqi\Source\Temp\blazorTest\blazorTest.csproj'
Detecting CSX files in 'c:\Users\wenqi\Source\Temp\blazorTest'.
Could not find any CSX files
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
Loading project: c:\Users\wenqi\Source\Temp\blazorTest\blazorTest.csproj
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
Configuration finished.
Omnisharp server running using Stdio at location 'c:\Users\wenqi\Source\Temp\blazorTest' on host 15164.
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
Successfully loaded project file 'c:\Users\wenqi\Source\Temp\blazorTest\blazorTest.csproj'.
Adding project 'c:\Users\wenqi\Source\Temp\blazorTest\blazorTest.csproj'
Update project: blazorTest
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
VSCode version: 1.40.2
C# Extension: 1.21.8
Dotnet Information
.NET Core SDK (reflecting any global.json):
Version: 3.0.101
Commit: bc5f8df0f5
Runtime Environment:
OS Name: Windows
OS Version: 10.0.18363
OS Platform: Windows
RID: win10-x64
Base Path: C:\Users\wenqi\AppData\Local\Scoop\apps\dotnet-sdk\current\sdk\3.0.101\
Host (useful for support):
Version: 3.0.1
Commit: 32085cbc72
.NET Core SDKs installed:
3.0.101 [C:\Users\wenqi\AppData\Local\Scoop\apps\dotnet-sdk\current\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.0.1 [C:\Users\wenqi\AppData\Local\Scoop\apps\dotnet-sdk\current\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.1 [C:\Users\wenqi\AppData\Local\Scoop\apps\dotnet-sdk\current\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.1 [C:\Users\wenqi\AppData\Local\Scoop\apps\dotnet-sdk\current\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
|Extension|Author|Version|
|---|---|---|
|csharp|ms-vscode|1.21.8|
|vscode-icons|vscode-icons-team|9.6.0|;
Hi @wenqiangxie,
Sorry you are running into issues. It appears that maybe you installed the .NET Core SDK using Scoop. We recommend using the official installer for you platform to install the .NET Core SDK.
You can find the installer here.
-Joey
In case anyone is browsing this issue at a later point and using Linux, building msbuild myself helped resolve the issue.
In case anyone is browsing this issue at a later point and using Linux, building
msbuildmyself helped resolve the issue.
Could you provide more info on what was the solution ?
I'm facing the same problem on Ubuntu (installing .net core with apt or asdf) and Omnisharp can't find the sdk.
Hi @flaprano,
If you have followed the instructions on installing .NET Core SDK and still having issues, could you open a new issue and include your logs?
Hi @flaprano,
If you have followed the instructions on installing .NET Core SDK and still having issues, could you open a new issue and include your logs?
Of course.
The problem is basically the same described here and on a lot of other issues but I will open a new one. :)
Hi @flaprano,
If you have followed the instructions on installing .NET Core SDK and still having issues, could you open a new issue and include your logs?Of course.
The problem is basically the same described here and on a lot of other issues but I will open a new one. :)
Do you solve this problem ?
Hi @flaprano,
If you have followed the instructions on installing .NET Core SDK and still having issues, could you open a new issue and include your logs?Of course.
The problem is basically the same described here and on a lot of other issues but I will open a new one. :)Do you solve this problem ?
Not exactly.
I found out that it doesn't work well with asdf and installed sdk just by apt.
In the end it worked.
@flaprano I got it working with asdf. I just added the following line to my .zshrc:
export MSBuildSDKsPath="$ASDF_DIR/installs/dotnet-core/3.1.202/sdk/3.1.202/Sdks"
@flaprano I got it working with
asdf. I just added the following line to my.zshrc:export MSBuildSDKsPath="$ASDF_DIR/installs/dotnet-core/3.1.202/sdk/3.1.202/Sdks"
Thanks.
I will test again.
I remember testing it that way and it didn't work. Perhaps in some update it has been corrected.
@flaprano Please let me know if it worked when you try.
@joaomarcos96 I faced the same problem, that is, using Asdf on Linux Ubuntu 20.04, OmniSharp caused the error when opening the program, and did not allow, for example, navigation with F12 between classes. includes the environment variable as you indicated, and it worked, thanks.
@flaprano Please let me know if it worked when you try.
Hi @joaomarcos96 , sorry on the delay on giving you a feedback.
I changed between projects on my company and now I'm more focused on ruby than c#.
I tried setting the env and in my case it didn't worked.
As your answer has helped others I think the problem may be on my installation or another library that I'm loading on my system.
A few images that shows my problem.


I also wasn't able to make it work on my Linux machine while managing versions with asdf. Tried most workarounds I found:
Maybe that's a compatibility issue with the SDK or OS versions?
my dotnet --info output
NET Core SDK (reflecting any global.json):
Version: 2.2.207
Commit: f7b16a2cd5
Runtime Environment:
OS Name: linuxmint
OS Version: 19.1
OS Platform: Linux
RID: linuxmint.19.1-x64
Base Path: /home/marcelbornancin/.asdf/installs/dotnet-core/2.2.207/sdk/2.2.207/
Host (useful for support):
Version: 2.2.8
Commit: b9aa1abc51
.NET Core SDKs installed:
2.2.207 [/home/marcelbornancin/.asdf/installs/dotnet-core/2.2.207/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.8 [/home/marcelbornancin/.asdf/installs/dotnet-core/2.2.207/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.8 [/home/marcelbornancin/.asdf/installs/dotnet-core/2.2.207/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.8 [/home/marcelbornancin/.asdf/installs/dotnet-core/2.2.207/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Anyway, it's not the first time I face problems managing dotnet versions with asdf. I would just follow my rule of thumb of using the mainstream install for dotnet core, and using asdf to anything else.
Most helpful comment
@flaprano I got it working with
asdf. I just added the following line to my.zshrc: