Skip to content

Include #nullable enable to generated files #337

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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