12

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

RickAndMSFT
  • 20,912
  • 8
  • 60
  • 78

1 Answers1

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.

RickAndMSFT
  • 20,912
  • 8
  • 60
  • 78
  • 1
    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. – Lex Li Mar 27 '18 at 02:57
  • 1
    No, older SDKs don't support the second option. Only 2.1+. – Maíra Wenzel - MSFT Mar 28 '18 at 06:04
  • 3
    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". – Ian Kemp Jun 13 '18 at 06:21