Jump to content

Visual Studio Code Dotnet not working (The .NET Core SDK cannot be located)


photo

Recommended Posts

Posted (edited)

[PARTIALLY SOLVED]

Good evening,

This is for helping those who expirience this problem. If you get the error:

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

then the solution for it is very simple. If you installed dotnet and added it to the path in Environment Variables in User Variables table

image.png.15b3bb3a447d2cc29cc4fd0b96b570ee.png

image.png.5cdcbc737c825c01fd5f855bed9bab0c.png

then the problem is the duplicate dotnet folder in Program Files (x86). Dotnet should be only in this folder.

image.png.d737de77b1a0737f555b86794d5c65f3.png

Restart the computer and delete the Dotnet Folder in Program Files (x86) before it gets initilized by the system. By doing so you might get this error, but visual studio code will work just fine

image.png.b10ef59719ed962f9e1275b5d8a54ca3.png

 

 

DO NOT CONTINUE FROM HERE. I HAVEN'T FIGURE OUT HOW TO FIX IT. EVERYTHING SHOULD BE WORKING IN VS CODE

 

This is because of Kaspersky Antivirus using the Dotnet Framework. To fix it go to:

https://support.kaspersky.com/common/error/installation/11682

and depending on your system reinstall what is necessary. In case the link doesn't work in the future this is what is on the website:

For Windows 10, Windows 11:

Install the latest operating system updates from the Microsoft website and try installing or running a Kaspersky application once again.

If the .Net Desktop Runtime error occurs, follow the steps below:

  1. Download and install Microsoft .NET Desktop Runtime for х86 of the latest version from the .NET Desktop Runtime section.
  2. Try installing or starting a Kaspersky application once again.

For Windows 8:

  1. Download and install the latest version of .Net Framework.
  2. Try installing or starting a Kaspersky application once again.

For Microsoft Windows 7 Service Pack 1:

  1. Delete the application using the standard Windows tools (click StartControl PanelPrograms and Features → Uninstall/Change).
  2. Download and install .Net Framework.
  3. Try installing and starting a Kaspersky application once again.

Now that you have done that you get the problem

image.thumb.png.947c1264818af982ccfbe5b4534b8f8e.png

Edited by Sevdat
×
×
  • Create New...