Attribute '<attributename>' cannot be applied to a module

You attempted to apply an attribute to a module whose AttributeUsageAttribute does not specify AttributeTargets.Module. When the attribute was declared, it was not defined to be applied to a module.

Error ID: BC30549

To correct this error

  • Check the attribute declaration and specify AttributeTargets.ModuleorAttributeTargets.All.

See Also

Reference

AttributeUsageAttribute

AttributeTargets