Identify .Net Core Version
Check SDK versions
You can see which versions of the .NET SDK are currently installed with a terminal. Open a terminal and run the following command.
dotnet --list-sdks
You will get output similar to:
5.0.412 [C:\Program Files\dotnet\sdk]
7.0.101 [C:\Program Files\dotnet\sdk]
Check runtime versions
You can see which versions of the .NET runtime are currently installed with the following command.
dotnet --list-runtimes
You get output similar to the following.
Check for install folders
It's possible that .NET is installed but not added to the PATH
variable for your operating system or user profile. In this case, the commands from the previous sections may not work. As an alternative, you can check that the .NET install folders exist.
When you install .NET from an installer or script, it's installed to a standard folder. You may have chosen a non-default folder though.
dotnet executable
C:\program files\dotnet\dotnet.exe.NET SDK
C:\program files\dotnet\sdk\{version}\.NET Runtime
C:\program files\dotnet\shared\{runtime-type}\{version}\