Paul
11/25/2002 9:06:00 PM
Hi,
I'm trying to retrieve my assembly's version using
Reflection so my testers could report bugs appropriately.
I tried the following code, but I didn't see
AssemblyVersionAttribute:
object[] attribs = Assembly.GetExecutingAssembly
().GetCustomAttributes(true);
foreach (Attribute attrib in attribs)
{
AssemblyVersionAttribute ver = null;
if ((ver = attrib as AssemblyVersionAttribute) != null)
{
version.Text = "Version " + ver.Version;
break;
}
}
Can someone give a pointer?
Thanks,
Paul