[Mono-list] AssemblyVersionAttribute not showing up?

Ben Maurer bmaurer at ximian.com
Sat Jun 25 08:32:56 EDT 2005


On Sat, 2005-06-25 at 06:45 -0400, Stephen Touset wrote:
> I've created an AssemblyInfo.cs file, and set the
> AssemblyTitleAttribute, AssemblyVersionAttribute, and
> AssemblyCopyrightAttribute within. I've also ensured that the
> System.Reflection namespace is being used.
> 
> However, when I try to use the GetCustomAttributes method on the
> currently executing assembly, the only Attributes it returns are the
> Title and Copyright Attributes. No Version.
> 
> Is there any reason that an AssemblyVersionAttribute wouldn't be
> accessible through this way, even though other attributes set in
> AssemblyInfo.cs are?

It is probably a pseudo attribute -- it can be accessed via a property
in reflection.

-- Ben



More information about the Mono-list mailing list