Skip to content

DeprecatedAttribute vs ObsoleteAttribute #281

@dnv-kimbell

Description

@dnv-kimbell

I recently updated to the latest version and everything built and looked fine. By accident I discovered an indicator when calling .Self() on a CspDirectiveBuilder. After doing some digging, I discovered that you had introduced a DeprecatedAttribute and a custom analyzer to report on it.

I couldn't see any trace of this in the output or error list list windows; only when hovering the cursor over the code.

If you had used ObsoleteAttribute, it would become a lot more visible and easier to detect.

Is there a particular reason for going down the custom DeprecatedAttribute path?

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