Skip to content

[Blazor Server Side] Setting @layout on _Imports.razor' project root folder freezes the project -- the browser page keeps loading forever #11406

@baartho

Description

@baartho

Describe the bug

After setting the @layout on the root folder _Imports.razor file my project builds, no errors/exceptions are thrown, but the project keeps loading forever.

If I remove the @layout declaration the issue stops happening.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new ASP.NET Core Blazor 3.0 Preview 6 Server Side project
  2. Open _Imports.razor on the project root folder
  3. Add a layout declaration. Ej: @layout MainLayout
  4. Run the project

Expected behavior

The browser keeps loading the page forever

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions