CLI
dotnet --list-runtimes
Lists visible shared .NET runtimes, including runtime families and versions. An installed runtime is not necessarily an installed SDK.
Formal Syntax & Structure
csharp syntaxcsharp
dotnet --list-runtimesWorking Example
Example Snippetcsharp
dotnet --list-runtimes