Using Assembly Attributes

The word assembly is used in several contexts. There is the Assembly class that represents an instance of a compiled assembly. There is the notion of a compiled assembly that contains metadata and IL, and there is the Assembly keyword used to demark assembly-level attributes. You will most commonly find assembly-level attributes in a file named AssemblyInfo.vb, although you may find assembly-level attributes in any module.

Two things are required for assembly-level attributes. The first is that when the attribute is defined, it must have the AttributeTargets.All or AttributeTargets.Assembly enumerated value in the list of arguments used to initialize the AttributeUsageAttribute. The second requirement is that you must ...

Get Visual Basic® .NET Power Coding now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.