Attribute '<attributename>' cannot be applied to an assembly

You attempted to apply an attribute to an assembly whose AttributeUsageAttribute does not specify AttributeTargets.Assembly. When the attribute was declared, it was not defined to be applicable to an assembly.

Error ID: BC30548

To correct this error

  • Check the attribute declaration and specify AttributeTargets.Assembly or AttributeTargets.All.

See Also

Reference

AttributeUsageAttribute

AttributeTargets