question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dotnet --list-sdks did not work

See original GitHub issue

image

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

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

C:\Users\donhuvy>dotnet

Usage: dotnet [options]
Usage: dotnet [path-to-application]

Options:
  -h|--help         Display help.
  --info            Display .NET information.
  --list-sdks       Display the installed SDKs.
  --list-runtimes   Display the installed runtimes.

path-to-application:
  The path to an application .dll file to execute.

C:\Users\donhuvy>dotnet --info

Host (useful for support):
  Version: 6.0.0
  Commit:  4822e3c3aa

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.20 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.11 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.20 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.7 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.11 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.20 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.7 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.11 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.0 [C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

C:\Users\donhuvy>

image

image

related: https://stackoverflow.com/questions/69913325/run-command-dotnet-list-sdks-did-not-return-result?noredirect=1#comment123585272_69913325

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Rick-Andersoncommented, Nov 11, 2021

If you run SET PATH or where dotnet you can quickly tell which host is being resolved and then just fix the PATH variable.

But very few people know that. That’s why SO has dozens of threads on this with over 100K views.

Would it be possible to detect the path problem on install and then provide a fwlink to help?

1reaction
wtgodbecommented, Nov 11, 2021

@marcpopMSFT @joeloff or @dsplaisted may know what to do here

Read more comments on GitHub >

github_iconTop Results From Across the Web

dotnet --list-sdks shows empty although .Net core ...
After recent windows update, my Visual studio 2019 cannot load project, and the error is "The project file cannot be opened.
Read more >
c# - .NET SDK's Not Installing Correctly
Now try it out, open a new command prompt or PowerShell, and type dotnet --info . It should tell you that you have...
Read more >
Unable to locate the .NET SDK: The Reasons - Hamid Mosalla
Try running dotnet --list-sdks command to see if it lists the sdk. The .Net Sdk Is Installed But it Has Wrong System Type....
Read more >
Check installed .NET versions on Windows, Linux, and ...
You can see which versions of the .NET SDK are currently installed with a terminal. Open a terminal and run the following command....
Read more >
Why don't any of these methods work for installing .Net ...
sudo apt update sudo apt install dotnet-sdk-6.0. And I got the last version of the SDK: $ dotnet --list-sdks 6.0.400 [/usr/share/dotnet/sdk].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found