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.
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.
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.
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 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.
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.
Use Environment.Version
- it gives you the exact version of .NET running the application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With