Skip to content

Do not validate nullable annotations when targeting net472 #9494

@tmat

Description

@tmat

The code base currently uses ! suppression to avoid nullable warnings.
Rather than littering the code with ! the nullability analysis should be disabled for net472 targets in projects that multi-target.

Alternatively, calls to APIs like string.IsNullOrEmpty that are annotated on net10 but not on net472 should be changed to null-annotated equivalents.

The editorconfig suppresses IDE0370: Suppression is unnecessary to allow unnecessary ! when not targeting net472.
This should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions