Click to See Complete Forum and Search --> : Assemble Version


svkr2k
March 27th, 2003, 09:18 PM
Dear Forum members,

How can I get the version of a .Net assembly using C#.
Is there a function which takes in a .net dll file name
and returns me the version string ?

Thanks in advance.

wolfofthenorth
March 27th, 2003, 10:42 PM
Try

System.Reflection.Assembly.GetAssembly(typeof(anExposedType)).FullName

The version should be the second comma delimeted field.

Hope this helps.

pareshgh
March 28th, 2003, 03:54 PM
good though. ;)
Paresh