PS D:\work\netcorework> dotnet --info
.NET Core SDK(反映任何 global.json):
Version: 2.2.103
Commit: 8edbc2570a
运行时环境:
OS Name: Windows
OS Version: 10.0.17134
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.2.103\
Host (useful for support):
Version: 2.2.1
Commit: 878dd11e62
.NET Core SDKs installed:
2.2.103 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
omnisharp 1.18.0
when i installed other version (1.17.1) then this issues is nothing
@nczsl Can you share your "C#" log?
omnisharp log only show:
Error occured in loading omnisharp from omnisharp.path
Could not start the server due to Error: The system could not find the specified path
when vscode start time, or use omnisharp command in command board
@nczsl C# log please:

that is empty, not exist any info
@nczsl Could you try uninstalling and then reinstalling the extension. When you reinstall you should see a C# log
that's no different, uninstall and install omnisharp C# log still no info
@nczsl Does the .omnisharp folder exists in your .vscode/extensions/ms-vscode.csharp folder?
Could you try setting "omnisharp.path": "latest" and restarting vscode ?


@nczsl Same issue, In my case because I was setted Omnisharp.Path="absolute path" in vscode.
The problem was fixed after remove it.
VSCode->File->Preferences->Settings, Or press [Ctrl + ,] open settings panel,
search omnisharp.path, click [Edit in settings.json] edit json directly, remove "Omnisharp.Path":"xxx" if it exists. Or correct it.
@nczsl Same issue, In my case because I was setted Omnisharp.Path="absolute path" in vscode.
The problem was fixed after remove it.
VSCode->File->Preferences->Settings, Or press [Ctrl + ,] open settings panel,
search omnisharp.path, click [Edit in settings.json] edit json directly, remove "Omnisharp.Path":"xxx" if it exists. Or correct it.


and restart vscode, then .. no use
hello can someone help me please im having this same issue
hello can someone help me please im having this same issue
I don't know how to solve this problem. Later, I didn't care about it, I didn't use vscode for C# development, and I didn't care about this problem ,because i use vs 2019. Now I've reinstalled the system for many times.I don't know if this problem still exists in my vscode, As a digression, I use vscode to do typescript, which is really great, very good :)
well i fixed my issue by going to extensions and actually enabling the c# extension and then boom everything started working lol
I spent a lot of time trying to solve this problem, and the solution for me turned out to be simple - revert _C#_ latest update:

Most helpful comment
@nczsl Same issue, In my case because I was setted Omnisharp.Path="absolute path" in vscode.
The problem was fixed after remove it.
VSCode->File->Preferences->Settings, Or press [Ctrl + ,] open settings panel,
search omnisharp.path, click [Edit in settings.json] edit json directly, remove "Omnisharp.Path":"xxx" if it exists. Or correct it.