Skip to content

Make StartupAnalysisBuilder-based analyzers work with WebApplicationBuilder #34404

@halter73

Description

@halter73

Today we have analyzers that warn for various misconfigurations of middleware, options and service registration all based on StartupAnalysisBuilder. We should make this work for applications using WebApplicationBuilder without a Startup class.

This is related to #34146. We want to address that with a new analyzer to verify middleware ordering for WebApplicationBuilder now that UseRouting()/UseEndpoints() is often implicit.

Metadata

Metadata

Assignees

Labels

Priority:2Work that is important, but not critical for the releasearea-minimalIncludes minimal APIs, endpoint filters, parameter binding, request delegate generator etcfeature-minimal-hosting

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions