Skip to content

Add support for @namespace directive for components #8007

@ajaybhargavb

Description

@ajaybhargavb

I'm not sure if this was intentional but looks like we don't really support namespace directive in component documents. To support this, we'll need to add a ComponentNamespaceDirective similar to ComponentPageDirective.

Although the behavior of this directive isn't any different from regular Mvc/Pages, we can't use the same type because the existing NamespaceDirective resides in Mvc.Razor.Extensions and we can't move it over to Razor.Language because it is not supported in 1.x apps.

Note: This is a prerequisite for supporting namespace directives with usings in #5577

cc @rynowak

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing one

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions