Intellisense not working on VSCode

I just started the Udemy course on 2D games with Unity and C#, but I can’t make Intellisense work.

Environment

MacOS Ventura 13.3.1
VSCode April 2023 (version 1.78)
C# Extension version 1.25.4

mono --version
Mono JIT compiler version 6.12.0.182 
(2020-02/6051b710727 Tue Jun 14 15:01:21 EDT 2022)
dotnet --info
.NET SDK:
 Version:   7.0.302
 Commit:    990cf98a27

Expected Behaviour

VSCode opens .cs files and suggests transform when typing transf.

Actual Behaviour

The .NET Core SDK cannot be located: 
A valid dotnet installation could not be found. 
.NET Core debugging will not be enabled. 
Make sure the .NET Core SDK is installed and is on the path.

Things I have tried

I have tried version 1.25.7, 1.25.4, and 1.25.0 of the OmniSharp C# extension. Each gives gives be a slight variation of the same problem, namely .NET missing, Mono missing, or both.

Inside the OmniSharp settings, I specified the Omnisharp: Sdk Path with the output of which dotnet.
And in Omnisharp: Mono Path I specified the output of which mono.

Also, Omnisharp: Use Modern Net is set to False.

I would appreciate any help to make it work as the course is pretty much unenjoyable without that. Thanks!

had a similar issue on windows a while back it was because I had an older version of .Net installed since you’re on mac it seems you may not have .Net installed at all try (Install .NET on macOS - .NET | Microsoft Learn)

Hi @Willrun,

I think I have .NET given that the command dotnet --info gives me successfully

dotnet --info
.NET SDK:
 Version:   7.0.302
 Commit:    990cf98a27

I think the issue has a lot more to do with VSCode not knowing where .NET and Mono are, even though both are on my PATH given that I can called them successfully from the shell.

I think this thread can help you:

There are suggestions that apply to Mac and Windows in the above thread.

Hope this helps!

For whoever stumbles upon this having the same issue, I urge you to ditch Visual Studio Code and use Visual Studio Community instead.

Visual Studio Community works almost out-of-the-box. Simply follow this set of instructions and it will work.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms