Skip to content

Change C# templates to have #nullable enabled by default #2979

@christiannagel

Description

@christiannagel

It would be great to have nullable reference types enabled by default in new projects.
Because of the breaking changes it's understandable that this is not the default with existing projects, but creating new projects this should be the default, or easily turned on to be the default.

Just turning nullable reference types on with directory properties does not help. Using this, if a project with nullable reference types is copied results in compiler warnings.

At least there should be an option that can be easily configured that new projects should be created with nullable reference types turned on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: template-contentThe issue is related to content of template packages managed in this repo (/template_feed)need-pm-discussionNeed agreement from PM that the issue aligns to targeted stories for any of the next 2 releasestriagedThe issue was evaluated by the triage team, placed on correct area, next action defined.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions