Skip to content

Build-time compiler errors for Blazor #63216

@mapgie

Description

@mapgie

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I want to test my application but there are console errors on first build that require restarting my application. These should be present in the error list at build-time.

Describe the solution you'd like

This is a console error on first-load for a component parameter that is missing the access modifier public.
Changing the access modifier requires restarting the application, and so this error should have been identified at build-time in the error list.

the type declares a parameter matching the name 'EndpointDetails' that is not public. Parameters must be public.

Additional context

Often, dialogues will say "see error list for details" but the error list is empty.
I may add more examples to this request as I encounter them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    analyzerIndicates an issue which is related to analyzer experiencearea-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions