-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
dotnet/razor
#504Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one
Milestone
Description
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
vertonghenb
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor ComponentsenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing one