Tim Huffam

Dotting the I and crossing the T of I.T.

  Home  |   Contact  |   Syndication    |   Login
  129 Posts | 0 Stories | 874 Comments | 677 Trackbacks

News

Archives

Post Categories

Interesting Blogs/Links

This really very simple, once you know how....

To get the version of the currently running assembly:

System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
System.Reflection.AssemblyName assemblyName = assembly.GetName();
Version assemblyVersion =  assemblyName.Version;

To get the version of the CLR runtime:

Version CLRVersion = Environment.Version;

 

posted on Tuesday, March 28, 2006 3:14 PM

Feedback

# re: How to determine assembly and .NET CLR runtime versions at runtime. 3/19/2008 1:00 AM David Rutten
Ugh.. it WAS very simple. Took me a good half hour to find someone who actually explained it. Thanks!

# re: How to determine assembly and .NET CLR runtime versions at runtime. 8/1/2008 9:12 AM Rob
Okay, how do you get a referenced assembly type?

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 7 and 5 and type the answer here: