You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a specific property of a class has multiple attributes of the same type, and the "AttributeUsageAttribute" is inherited from a base type, then the "AllowMultiple" value of the "AttributeUsageAttribute" that was inherited is not honored. Instead, only 1 attribute of that type is copied by default in ILRepack.
When ILMerge is used, the default behavior is to copy all of these Class level attributes when the inherited "AttributeUsageAttribute" that is set in a base type has "AllowMultiple" set.
Can we get ILRepack to behave more like ILMerge in how it handles class/property level attributes?
The text was updated successfully, but these errors were encountered:
I was wrong about the /copyattr and /allowMultiple flags, these did not change the behavior on my class/property level attributes during repack. I found instead that the "AttributeUsageAttribute" is not honored in ILRepack when it is inherited from a base type. This seems to be the source of this difference in behavior from ILMerge to ILRepack.
purnellsh
changed the title
Class/property level attributes are not all copied by default during repack
Class/property level attributes are not all copied by default during repack when AttributeUsageAttribute is inherited from a base type
Apr 29, 2019
purnellsh
changed the title
Class/property level attributes are not all copied by default during repack when AttributeUsageAttribute is inherited from a base type
Class/property level attributes are not all copied during repack when AttributeUsageAttribute is inherited from a base type
Apr 29, 2019
If a specific property of a class has multiple attributes of the same type, and the "AttributeUsageAttribute" is inherited from a base type, then the "AllowMultiple" value of the "AttributeUsageAttribute" that was inherited is not honored. Instead, only 1 attribute of that type is copied by default in ILRepack.
When ILMerge is used, the default behavior is to copy all of these Class level attributes when the inherited "AttributeUsageAttribute" that is set in a base type has "AllowMultiple" set.
Can we get ILRepack to behave more like ILMerge in how it handles class/property level attributes?
The text was updated successfully, but these errors were encountered: