Skip to content

Update StartupAnalyzer to recommend calling UseStatusCodePages after UseRouting #38591

@pranavkm

Description

@pranavkm

As a follow up to #38509, we should add a startup analyzer that recommends ordering UseStatusCodePages after UseRouting . This is somewhat contingent on #38590 being done as we really don't want this analysis to start appearing for apps targeting .net6 or earlier (which is what would happen if we add new rules to the ones shipping via the SDK).

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerIndicates an issue which is related to analyzer experiencearea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templates

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions