8000 Class/property level attributes are not all copied during repack when AttributeUsageAttribute is inherited from a base type · Issue #249 · gluck/il-repack · GitHub
[go: up one dir, main page]

Skip to content

Class/property level attributes are not all copied during repack when AttributeUsageAttribute is inherited from a base type #249

Open

Description

@purnellsh

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?

Activity

  1. purnellsh commented on Apr 29, 2019

    @purnellsh
    Author

    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.

  2. 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[/+] on Apr 29, 2019
  3. 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[/+] on Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0