Skip to content

Fix S8970 FP: Inline code in razor page #9823

Description

@akurone

Description

hi,
there is lot going on in razor -> c# which mostly includes flipping nullable context. but S8970 conflicts with CS8625 in razor files. (Vs 2026 18.8.1, .net SDK: 10.0.302)

Reproducer

this violates S8970:

[Parameter, EditorRequired] public object X { get; set; } = null!;

however this violates CS8625:

[Parameter, EditorRequired] public object X { get; set; } = null;

Product and Version

10.30.0.144632

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions