julien <ju****@sobrier.net> wrote in
news:42*********************@news.free.fr:
Hello,
Assembly.FullName give information about a DLL, including the
version w.x.y.z.
Is there a way to extract the version directly from the
assembly, or do I have to extract it from Assembly.FullName?
Julien,
A simple regular expression can be used to extract the assembly's
version number:
Assembly sampleAssembly = Assembly.GetAssembly(1.GetType());
Console.WriteLine(Regex.Match(sampleAssembly.FullN ame, @"\d+\.\d+\.\d+\.\d+").ToString());
--
Hope this helps.
Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/