Skip to content

ReSharper warning CS8669: nullable reference types inside Auto-generated code #883

@TimSirmovics

Description

@TimSirmovics

When nullable reference types are enabled, the following ReSharper compiler warning is emitted:

Code inspection: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.

Can you add an explicit #nullable directive when nullable reference types are used?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions