AssemblyVersionAttribute. Is it pseudo or not?

Hi all.

Bizarly enough, an assembly that's been decorated with the
AssemblyVersionAttribute does not give up the goods when
Assembly.GetCustomAttributes(...) is called. You have to get at the
version information via a call to AssemblyName.Version property. This
can be got at with the following code:

this.GetType().Assembly.GetName().Version

Which returns a System.Version object reference you can use to get the
major, minor, build and revision information stored by the
AssemblyVersionAttribute.

Why this attribute does not get returned by the GetCustomAttributes
method I have no idea. It's not a pseudo-attribute so what gives?

Comments