Skip to content

Include #nullable enable to generated files #337

@scottcollins

Description

@scottcollins

I have some models being generated in a project that uses nullable reference types

The types generate fine, but I am getting CS8669 warnings because the generated file does not have #nullable enable included

Ex: public string? City { get; set; } gets generated but is marked as a warning

Adding this directive to the generated file would eliminate these warnings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions