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
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.
3 Comments
Lex Li
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.
Maíra Wenzel - MSFT
No, older SDKs don't support the second option. Only 2.1+.
Ian Kemp - SO dead by AI greed
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".