Windows 10 cannot find downloaded dotnet SDK

David Lane-Joynt 41 Reputation points
2021-11-17T13:59:22.813+00:00

I have downloaded the .NET 5 SDK from the Microsoft site and run the downloaded file dotnet-sdk-5.0.403-win-x64.exe. This has set up a folder c:\program files\dotnet\sdk\5.0.403. I think I have the latest dotnet 5 SDK installed.

But it appears Windows 10 cannot find this SDK
I have used the command line prompt dotnet --info
This lists installed runtimes but says that no SDKs were found

I have checked the environment variables
I had C:\Program Files\dotnet\ in PATH
I have also tried it with C:\Program Files\dotnet\sdk\5.0.403\ but this does not make any difference

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,961 questions
{count} votes

2 answers

Sort by: Most helpful
  1. David Lane-Joynt 41 Reputation points
    2021-11-17T16:58:05.92+00:00

    I want to use the SDK with Visual Studio 2019

    0 comments No comments

  2. Limitless Technology 39,796 Reputation points
    2021-11-17T19:07:47.017+00:00

    Hi @David Lane-Joynt

    Check if the Path in the system's environment variables is correctly configured for your system.

    Given that there's always one shared host that moves forward, it will either pick the x86 or the x64 version on your machine. This issue of not picking the right one might happen if you install multiple/different versions.

    Run the where.exe dotnet command to see where the host is looking for the SDK

    You can also follow the methods as per this link https://learn.microsoft.com/en-us/dotnet/core/install/windows?tabs=net60

    ---------
    --If the reply is helpful, please Upvote and Accept it as an answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.