Most attributes are attached to specific language elements, such as classes or methods; however, some attributes are global—they apply to an entire assembly or module. Assembly-level attributes are specified as follows:
[assembly: attribute-list]
Module-level attributes are specified as follows:
[module: attribute-list]
where
Global attributes appear in the source code after any top-level using directives and before any type or namespace declarations. Global attributes can appear in multiple source files in a single compilation.
Note Assembly-level attributes can be specified only if an assembly manifest is being created.
The following NGWS attributes let you modify the information in an assembly:
If you do not want an assembly created for a compilation, use the compiler option /target:module.
[assembly: System.CLSCompliant(true)]
Introduction to Attributes | Using Attributes | Creating Custom Attributes | Retrieving Attribute Information