dotnet / dotnet/aspnetcore

Build-time compiler errors for Blazor

Open
#63,216 10 comments 0 reactions 0 assignees View on GitHub
analyzer area-blazor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [x] 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.