属性“<attributename>”不能应用于模块

更新:2007 年 11 月

试图给一个模块应用属性,而该属性的 AttributeUsageAttribute 不指定 AttributeTargets.Module。在声明该属性时,没有将它定义为要应用于模块。

**错误 ID:**BC30549

更正此错误

  • 检查属性声明并指定 AttributeTargets.Module或AttributeTargets.All。

请参见

参考

AttributeUsageAttribute

AttributeTargets