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-sdksWorking Example
Example Snippetcsharp
dotnet --list-sdks