Skip to content

Razor component discovery should use 'SkipAnalyzers' #25365

@chsienki

Description

@chsienki

In #25292 the component discovery CSC pass was modified to pass analyzers, as Source generators are now included and removing them can cause builds to fail.

The warning level was also set to 0 in order to hide duplicate warnings. This means that analyzers, which can only emit diagnostics, are running but won't have any functional change on the build. In dotnet/roslyn#46669 we introduced a new parameter for this scenario SkipAnalyzers this will skip the execution of analyzers passed to the compiler, but still allow any source generators to run,

(note: analyzers can currently issue errors, which will prevent the component discovery from succeeding and failing the build. Skipping the analyzers will skip this step, but the same analyzers will run as part of the second phase build and issue an error there instead, which is functionally the same from the users perspective).

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions