Skip to content

Unable find .NET SDK

Problem

When trying to run a .NET project, you may see the error Unable to find the .NET SDK, indicating that the system cannot locate the required SDK files.

Error Example

Solution

To resolve this issue, add the .NET SDK folder to your system PATH.

Update Your System PATH Variable

Start by following Steps 1–3 in the “Update your system PATH variable” section here.

After completing those steps, return here to add the specific .NET SDK path.


Add .NET SDK Path to PATH Variable

  1. Open the Edit environment variable window.

  2. Click New (red box) to add a new entry.

  3. Enter the .NET SDK path as shown in the green box below:

    Path Configuration Example

  4. Adjust the path if necessary, ensuring it aligns with the location where the .NET SDK is installed on your system (the default location is typically C:\Program Files\dotnet).

Restart MINGW64 Terminal

Click OK on all open windows to save the changes.

Open a new MINGW64 terminal window and try running the program again.

Following these steps should allow Windows to locate the .NET SDK, enabling you to run your project without further issues.