Documentation should reference that `Microsoft.AspNetCore.Components.Web` is required · Issue #37288 · dotnet/AspNetCore.Docs · GitHub
Skip to content

Documentation should reference that Microsoft.AspNetCore.Components.Web is required #37288

Description

@RiRiSharp

Description

When creating a class library, the _Imports.razor is not necessarily there.
Therefore, also the @using Microsoft.AspNetCore.Components.Web will not be there.
Thus when copying working code over to that new class library, places where @onclick was used will stop working without any compiler or runtime warning or error.
The documentation says nothing about this either, so it is very cumbersome to debug, hence the suggestion to improve the docs.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status
P2 - Medium Priority

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions