Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the current dot net version of my application

How do I get the running dot net version of my asp.net application.

I tried the solution from here

Is there an easy way to check the .NET Framework version?

It gives the highest version installed but I need the running version.

like image 307
Paras Avatar asked Dec 15 '11 11:12

Paras


People also ask

How to check what version of the NET Framework is installed?

If you want to check what version of the .NET framework is installed from a .NET application, check this: Show activity on this post. Reflector will tell you which framework version an assembly was built with.

How do I Find my DotNet version on Windows 10?

To find out the list of .NET versions installed on Windows 10, use these steps: Open Start. Search for PowerShell, right-click the top result, and select the Run as administrator option. Type the following command to install the module and press Enter: Install-Module -Name DotNetVersionLister -Scope CurrentUser #-Force Type Y and press Enter.

What version of NET Framework is installed in Windows 10 version 1803?

Windows 10 Version 1803 has .NET Framework 4.7.2 installed by default. There are a few ways we can check which versions of .NET Framework are installed using command line.

How do I check if net is installed on Windows 10?

How to check .NET version using Command Prompt. To check the version of the .NET Framework installed on Windows 10, use these steps: Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option.


2 Answers

Use Environment.Version for getting the run time version. It will give the version number of .Net CLR which is being used for executing current application.

You need to be careful here, it will only return run time version not framework version. The CLR for .NET 3.0 and .NET 3.5 is the same CLR from .NET 2.0.

like image 118
Maheep Avatar answered Sep 23 '22 04:09

Maheep


Use Environment.Version - it gives you the exact version of .NET running the application.

like image 36
Pranay Rana Avatar answered Sep 22 '22 04:09

Pranay Rana