CLI

dotnet --list-sdks

Lists SDK installations visible to the invoked dotnet host. Architecture and installation locations matter; this command does not indicate which SDK a project selects.

Formal Syntax & Structure

csharp syntaxcsharp
dotnet --list-sdks

Working Example

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