Blazor Web App template: The Layout
folder (namespace) isn't present in the _Imports
file
#52478
Open
1 task done
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-templates
Priority:2
Work that is important, but not critical for the release
Milestone
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
In prior releases (Blazor Server), the
Shared
folder namespace was placed in the_Imports
file. This release for BWAs, only theComponents
folder is present. This results in the incongruous situation where "Layout.
" has to be supplied onDefaultLayout
...... which wasn't required before and still isn't required for Blazor WebAssembly apps. It's breaking the docs and requiring further versioned content.
Describe the solution you'd like
Consider adding it to the
_Imports
file ...@using BlazorWeb_CSharp.Components.Layout
Remove "
Layout.
" from the twoDefaultLayout
params inRoutes.razor
.Additional context
BTW .... It seems like if the components folder is plural (
Components
) and the routable components folder is plural (Pages
) that the layout folder name should also be plural (Layouts
).The text was updated successfully, but these errors were encountered: