Skip to content

Support Root Namespace Imports for Components #9569

@endeffects

Description

@endeffects

I have a shared component library where each micro component has it's own namespace.
In previous versions of blazor it was possible to use the taghelper to import such components with a root namespace. Now with the preview4 version i have to specify each namespace in the _Include file or on each page i'd like to use such a shared component.

Is there any plan to add a more generic solution for such imports or at least a better auto resolve on the page level? Because without the using declaration the component will not be rendered.

@addTagHelper *, My.Components
@using My.Components.ComponentA
@using My.Components.ComponentB
@using My.Components.ComponentC

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions