.Net sdk issue when i try to run it in cmd

Gavindu Wijesinghe 1 Reputation point
2021-08-30T06:56:58.353+00:00

**

I installed .net sdk5.0.400 win x64 on my laptop. But when I type dotnet --version on cmd there is a message saying that I don't have a .net sdk installed. What should I do?

**

127534-2021-08-30-2.png
127535-2021-08-30-3.png

Developer technologies .NET Other
{count} votes

1 answer

Sort by: Most helpful
  1. Lex Li (Microsoft) 6,037 Reputation points Microsoft Employee
    2021-08-30T15:51:26.117+00:00

    Take a look at the file paths in your screenshot and you can see they all point to C:\Program Files (x86).

    That indicates you launched a 32 bit command prompt, which won't be able to locate 64 bit SDKs you installed on this machine.

    The solution is to open a 64 bit command prompt from C:\Windows\system32\cmd.exe.

    0 comments No comments

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.