Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Programmatically getting the assembly version

0 views
Skip to first unread message

B. Lev

unread,
Jul 10, 2002, 11:25:43 AM7/10/02
to
Hi All,

This may be a simple problem: How do I programmatically get the versions of
the assemblies I am using in a project (that is the assemblies I supply). I
mean the information is present in the AssemblyVersionAttribute, but I
cannot figure out how to obtain the information at runtime.

With thanks in advance....


B. Lev


Nicholas Paldino [.NET/C# MVP]

unread,
Jul 10, 2002, 11:30:55 AM7/10/02
to
B. Lev,

First, get an Assembly instance for the assembly version you want.
Then, call the GetName method to get an instance of the AssemblyName
instance for that assembly. Once you have that, you can use the Version
property to get the version.

Hope this helps.


--
- Nicholas Paldino [.NET MVP]
- nicholas...@exisconsulting.com

"B. Lev" <b...@e-sense.dk> wrote in message
news:OT1DyXCKCHA.1772@tkmsftngp09...

0 new messages