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-runtimes

Working Example

Example Snippetcsharp
dotnet --list-runtimes
C# & .NET Reference