"Ignacio Machin ( .NET/ C# MVP )" <ig************@gmail.comwrote in
message
news:c6**********************************@w7g2000h sa.googlegroups.com...
On Apr 24, 9:17 am, "MC" <for.address.l...@www.ai.uga.edu.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.GetAssembly 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.GetAssembly(typeof(Console));
Console.WriteLine("Mscorlib.dll information:");
Console.WriteLine(a.ImageRuntimeVersion);
Console.WriteLine(a.CodeBase);
/* Assembly */ a = Assembly.GetAssembly(typeof(XmlSerializer));
Console.WriteLine("System.Xml.dll information:");
Console.WriteLine(a.ImageRuntimeVersion);
Console.WriteLine(a.CodeBase);