Skip to content

Update scaffolders to support nullable reference types #1594

@DamianEdwards

Description

@DamianEdwards

Nullable reference types was a feature introduced in C# 8. In .NET 6 we intend to enable it for new projects by default (see dotnet/templating#3359).

Any code emitted into a project by scaffolders should ensure that it doesn't introduce nullability warnings given the configuration of nullable reference types in the target project. This might mean updating the code to be "safe" for inclusion when nullable is on or off, or making the scaffolder emit different code depending on whether the project's nullable context configuration (i.e. the value of the <Nullable> property in the .csproj file).

@vijayrkn

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions