Saeed
Saeed

Reputation: 4115

How to find ASP.Net Core version?

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.

Upvotes: 29

Views: 67426

Answers (4)

ElasticCode
ElasticCode

Reputation: 7867

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

Upvotes: 51

Radu Bartan
Radu Bartan

Reputation: 563

Building on Yahgozie's answer this is a screen shot of how to access your project's properties... Note that you can change your target framework... if for example your are getting a conflict with a NuGet package, say Microsoft Entity Framework Core...

Upvotes: 0

Yahgozie
Yahgozie

Reputation: 41

If you are using the visual studio ide whether 2017, 2019, 2022 or any other version all you need to do is go to the solution explorer, and click on the properties. It will display the version of framework you are working on.

Upvotes: 4

Sthatha
Sthatha

Reputation: 41

dotnet --info

The above command at your terminal will provide all the info

Upvotes: 4

Related Questions