Skip to content

ApiCompat reports CannotChangeAttribute issue for enum's integer value in the contract to enum's name in the implementation #16616

@RichardR-cg

Description

@RichardR-cg
  • This issue is blocking
  • This issue is causing unreasonable pain

microsoft.dotnet.apicompat\9.0.0-beta.24054.1\build\Microsoft.DotNet.ApiCompat.targets(53,5): error CannotChangeAttribute : Attribute 'System.ComponentModel.EditorBrowsableAttribute' on '[poster has redacted]' changed from '[EditorBrowsableAttribute(1)]' in the contract to '[EditorBrowsableAttribute(EditorBrowsableState.Never)]' in the implementation.

Also occurs with 7.0.0-beta.24266.2, but interestingly, not with 7.0.0-beta.22074.1.

Given how long #6652 and #11090 have been open (which seem similar), and have received no assistance on either of them, I'm not holding out much hope for this ticket (which I posted separately in case it draws a fresh look from someone), so I'm sticking with that version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions