Udostępnij za pośrednictwem


'Assembly' or 'Module' expected

A global attribute is specified without indicating whether it applies to the entire assembly or only to the current module. Global attributes must specify either Assembly or Module.

A global attribute is one that appears on a source line by itself, rather than being applied to the declaration of a particular programming element.

Error ID: BC32015

To correct this error

  1. If you intend the attribute to be global, add the Assembly or Module keyword to the beginning of the attribute block, followed by a colon (:).

  2. If you do not intend the attribute to be global, delete the attribute block or move it to a programming element declaration.

See Also

Concepts

Application of Attributes

Global Attributes in Visual Basic

Reference

Assembly

Module (Visual Basic)