Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Dev Kit (VS Code) on macOS: "Compatible .NET SDK was not found"

I'm trying to use the C# Dev Kit extension for Visual Studio Code for my project.
I've created two ASP.NET Core Web API projects.

They can both be built successfully. However, when my workspace is loaded, the Solution Explorer will give an error for each project: A compatible .NET SDK was not found.

Looking at the output window, it looks like it found the SDK and I'm also able to built both projects just fine.
It looks like it's just an issue with the Solution Explorer.

I've also tried to add different project types (Class Library, Console App) but they all give the same error.

Anyone know what the problem is here?

Here is a screenshot of what I'm looking at:

enter image description here

like image 874
Ruud van Falier Avatar asked Apr 10 '26 22:04

Ruud van Falier


1 Answers

This is only an issue on Mac OS.

I was using Homebrew to install the .NET Core SDK.
Due to some issue, the VS Code extension was therefore not able to properly locate the SDK.

After uninstalling the SDK using Homebrew, I re-installed it using the .pkg package from Microsoft and that worked.

like image 170
Ruud van Falier Avatar answered Apr 12 '26 10:04

Ruud van Falier



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!