Ooh! I finally get to post to this list![1]

[1]
http://weblogs.asp.net/cfrazier/story/5794.aspx


-Christopher
 christopher AT nospamAspAlliance dot com
 http://weblogs.asp.net/CFrazier

-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of
Anthony.D.Clay-1
Sent: Friday, June 13, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Reflection Troubles


I'm trying to get my application to display version information on the
loading/splash screen by using reflection to retrieve the
System.Reflection.AssemblyVersion attribute.

But how do I retrieve the actual variable from an assembly? I'm doing
something pretty wrong here.

The version number returned ought to be 0.0.8888 or something to that
effect.  Also how do I extract the information from *other* assemblies?

Sure I can use a custom Attribute, but I *need* to retrieve [Assembly:
AssemblyVersion...]. The examples I managed to find in the msdn library
don't tell me how to extract such information from an assembly.  Can someone
provide me with an example that can retieve The information embedded by
assemblyinfo.cs in both the executing assembly and an assembly in the GAC or
on disc?


Anthony Clay
[EMAIL PROTECTED]

Reply via email to