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
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:
however this violates CS8625:
Product and Version
10.30.0.144632