Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET - what version of the framework am I currently running in (from C#)

Tags:

c#

.net

version

Using C#, what is the best way to ask the .NET Runtime which version you are running under?

like image 473
BuddyJoe Avatar asked Sep 13 '10 21:09

BuddyJoe


1 Answers

It is important to be careful about asking which version of the framework is running, and which version of the runtime is running, as they can be different. Your title and body ask subtly different questions.

@JaredPar is right on the money with the runtime version.

For framework versions, check out this closely-related post: How to detect what .NET Framework versions and service packs are installed?

like image 162
kbrimington Avatar answered Nov 16 '22 01:11

kbrimington