-
Notifications
You must be signed in to change notification settings - Fork 727
Description
Hello everyone,
I’ve just started learning C# and I’m running into issues with Visual Studio Code. The main problem is that IntelliSense is not working — I don’t get completion suggestions while typing, and when I hover over code, no information or tooltips appear.
Here’s what I’ve tried so far:
- Installed the .NET SDK (currently .NET SDK 9.0.304, architecture x64).
- Verified that dotnet --info works fine in Command Prompt.
- Fixed the PATH: C:\Program Files\dotnet is correctly added to my PATH, and Command Prompt recognizes dotnet.
- Installed the official C# extension (ms-dotnettools.csharp) in VS Code.
- Tried setting "dotnet.server.useOmnisharp": true in my settings.json.
- Restarted VS Code multiple times and reloaded the window.
- Checked runtimes installed (Microsoft.NETCore.App 6.0.29, 9.0.8, etc. — all appear correctly).
Despite this, I’m still facing issues:
-
I keep getting the error: The .NET Core SDK cannot be located: Error running dotnet --info: Error: spawn C:\Users\HP ENOENT
.NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path. -
VS Code sometimes tries to re-download the SDK (even though it’s already installed), and shows acquisition errors like:
Error : (DotnetAcquisitionFinalError)
Failed to download .NET 9.0.304-global~x64:
An error was raised by the .NET SDK installer. Exit code: ENOENT -
Even though I can write and run simple C# code, the lack of IntelliSense (auto-suggestions, hover info, quick fixes) makes it frustrating to code.
I’ve confirmed that everything works fine in Command Prompt (dotnet --info outputs all SDK/runtime info), but VS Code doesn’t seem to pick it up properly.
Has anyone experienced this issue? How can I get OmniSharp / IntelliSense to properly recognize my SDK and enable debugging + suggestions in VS Code?
Thanks a lot for the help!