Skip to content

Analyzer assumes Roslyn API has nullable enabled when it is not #2687

@jtschuster

Description

@jtschuster

Roslyn API doesn't use nullable types and will return null on properties and fields that aren't annotated with the ?. The linker assumes that fields will not be null, and those issues tend to appear most frequently with COM interop when a type doesn't have a namespace.

Maui has run into a few issues with this already, and it seems to be the main cause of null references in the analyzer. We should fully address this instead of fixing it bit by bit as issues are hit.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions