0

I run dotnet --list-sdks, but it shows no installed SDKs:

Microsoft Windows [Version 10.0.19043.1320]
(c) Microsoft Corporation. All rights reserved.

C:\Users\donhuvy>dotnet --list-sdks

C:\Users\donhuvy>

And:

C:\Users\donhuvy>where dotnet
C:\Program Files (x86)\dotnet\dotnet.exe
C:\Program Files\dotnet\dotnet.exe

enter image description here

CodeCaster
  • 147,647
  • 23
  • 218
  • 272
Vy Do
  • 46,709
  • 59
  • 215
  • 313
  • It is `--list-sdks`, with an `s` at the end... – CodeCaster Nov 10 '21 at 12:34
  • Yes. `dotnet --list-sdks` (has `s` ). It did not work. – Vy Do Nov 10 '21 at 12:34
  • So why do you show all that error output? What is the relevance of the latest screenshot? Your issue is with `--list-sdks` showing zero SDKs, are those SDKs actually installed? – CodeCaster Nov 10 '21 at 12:35
  • I download it likes this https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-5.0.403-windows-x64-installer , then install. It's SDK, not runtime. It does not show any error, just return nothing. – Vy Do Nov 10 '21 at 12:36
  • It is just a guess but try to run dotnet --list-sdks in administrator mode. – dotnetstep Nov 10 '21 at 12:38
  • Please read [ask] and provide all relavant details and show what you have tried, don't have users fishing for details. https://github.com/dotnet/runtime/issues/3242 - what is your PATH environment variable order, does the x86 version get listed first? Have you uninstalled and reinstalled the SDKs? Do you run the 64-bit cmd? – CodeCaster Nov 10 '21 at 12:39
  • @dotnetstep https://user-images.githubusercontent.com/1328316/141114893-74c81d20-e733-40de-ada3-c67f53107395.png – Vy Do Nov 10 '21 at 12:42
  • Check output of `dotnet --info`. My guess would be that x86 version is used and it does not find x64 SDKs – Guru Stron Nov 10 '21 at 12:43
  • 1
    According to your `where` output, the x86 path to the SDKs is indeed listed first. Move those around in your system settings (or remove the 32-bit version) and restart your console. – CodeCaster Nov 10 '21 at 12:43
  • @CodeCaster It seems to be solution. – dotnetstep Nov 10 '21 at 13:04

0 Answers0