"Ignacio Machin ( .NET/ C# MVP )" <ig************ @gmail.comwrote in
message
news:c6******** *************** ***********@w7g 2000hsa.googleg roups.com...
On Apr 24, 9:17 am, "MC" <for.address.l. ..@www.ai.uga.e du.slash.mc>
wrote:
>Given that System.Xml.dll has been revised several times (within .NET
2.0),
I'm wanting to find out if my program is running in an up-to-date
environment.
Use Assembly.GetAss embly to get a reference to the assembly
Thanks, Ignacio. Worked like a charm. In detail, here's how I did it, in
case anyone else wonders:
Assembly a = Assembly.GetAss embly(typeof(Co nsole));
Console.WriteLi ne("Mscorlib.dl l information:");
Console.WriteLi ne(a.ImageRunti meVersion);
Console.WriteLi ne(a.CodeBase);
/* Assembly */ a = Assembly.GetAss embly(typeof(Xm lSerializer));
Console.WriteLi ne("System.Xml. dll information:");
Console.WriteLi ne(a.ImageRunti meVersion);
Console.WriteLi ne(a.CodeBase);