Skip to content

SA1649 alerts for Razor Pages model classes #3909

Open
@omccully

Description

SA1649 - "File name should match first type name"

The standard template is it creates a file named MyPage.cshtml.cs" with a class MyPageModel`. The analyzer warns on this. I think it should have an exception for these Razor Pages model classes, since it is standard.

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