I'm using WebsitePanel and in Web Sites ==> Extensions tab, the ASP.NET version is 4 integrated pipeline.
My question is that how can I figure out what version of .Net Core is my server using now?
I don't really know if the asp.net is 4, the .Net Core is also 4 or not. And if it's version 4, then does it mean that version 2 is installed? Because in extensions tab, I have four options: 2, 2 integrated pipeline, 4 and 4 integrated pipeline.
To check which .NET Core Version is installed you can run one of the following commands on the command prompt.
dotnet --version // Display .NET Core SDK version.
dotnet --info //Display .NET Core information.
dotnet --list-runtimes // Display the installed runtimes.
dotnet --list-sdks // Display the installed SDKs.
Also, you can view all .NET Core versions Installed on the system by navigating to the installation folder on the below path.
%ProgramFiles%\dotnet\sdk
Update: Form .NET 6 and later versions we can use the below command to lists the latest available version of the .NET SDK and .NET Runtime and will show also whether your installed versions are up-to-date or out of support.
dotnet sdk check