Visual Studio cannot locate .NET Core SDK

Hello!

I’m trying to gain access to Visual Studio Code’s autocomplete feature inline with Unity, but I’m getting an error saying that

“the .NET Core SDK cannot be located” and that “.NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.”

I’m new to the forum. Forums in general. If I didn’t format my post correctly or if the question is silly please forgive me lol

Hi,

Welcome to our community! :slight_smile:

Please follow the instruction on this website and make sure all required extensions are installed: https://code.visualstudio.com/docs/other/unity

If the issue persists, please check the console of VS Code (not Unity!). If the .NET Framework 4.7.1 (Developer Pack) is mentioned there, download and install it from the official Microsoft. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471

Depending on your version of Unity, it might be that you will have to install the “Visual Studio Code Editor” package in Window > Package Manager in Unity.

  1. Press Ctrl + Shift + P.
  2. Type “OmniSharp: Select Project” and press Return.
  3. Select the solution workspace entry.

Maybe you’ll have to reboot your computer. Then launch Unity again and open one of your scripts.

Did this help?


See also:

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

Privacy & Terms