Question
How to see which version of dotnet is installed
Answer
I’m not sure when it was added, but the info command now includes this information in its output. It will print out the installed runtimes and SDKs, as well as some other info:
dotnet --info
If you only want to see the SDKs: dotnet --list-sdks
If you only want to see installed runtimes: dotnet --list-runtimes
I’m on Windows, but I’d guess that would work on Mac or Linux as well with a current version.
Also, you can reference the .NET Core Download Archive to help you decipher the SDK versions.
Links/related reading
📇Additional Metadata
- 📁Type::question-answer
- 🏷️Tags:: DotNet, CSharp, Programming
- 📡Status::🌲