12

How can I tell what versions of the .NET Core SDK are installed. How can I tell and which one is being used?

1 Answer 1

16
 dotnet --version 

Displays the version being used.

dotnet --list-sdks 

Lists the versions installed. Requires .NET Core SDK 2.1 and later.

See also See Windows or Visual Studio can't find the latest installed .NET SDK due to bitness

Windows key > apps & features and search on .net core. From apps & features you can uninstall SDKs you're not using.

Sign up to request clarification or add additional context in comments.

3 Comments

You might make it clear that the latter only works for .NET Core SDK 2.1.xxx and above. I don't think old SDKs support it.
No, older SDKs don't support the second option. Only 2.1+.
Note that in Add/Remove Programs in Control Panel, the 1.x SDKs are listed as ".NET Core SDK 1.x", while the 2.x are listed as "Microsoft .NET Core SDK 2.x".

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.