Skip to content

Error BL9981: Unexpected closing tag 'div' with no matching start tag #16023

@jaysongo

Description

@jaysongo

Blazor: 0.3.0
IDE: VSCode

Steps to Reproduce:

  1. Scaffold Blazor "hosted" (although I suspect any type will do). dotnet new blazorhosted
  2. Open MainLayout.cshtml
  3. Apply an HTML block comment to the inner div tag containing the @Body method.
    From:
<div class="content px-4">
    @Body
</div>

To:

<!-- <div class="content px-4">
    @Body
</div> -->
  1. Bug.
C:\...\Shared\MainLayout.cshtml(44,1): error BL9981: Unexpected closing tag 'div' with no matching start tag. [C:\....csproj]
    0 Warning(s)
    1 Error(s)

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