Skip to content

Commit c24f144

Browse files
authored
Fix moniker syntax (#36783)
1 parent ae0051e commit c24f144

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

aspnetcore/blazor/project-structure.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,15 @@ The `Components` folder of the server project holds the app's server-side Razor
6363

6464
The `Components/Pages` folder of the server project contains the app's routable server-side Razor components. The route for each page is specified using the [`@page`](xref:mvc/views/razor#page) directive.
6565

66-
moniker range=">= aspnetcore-10.0"
66+
:::moniker-end
67+
68+
:::moniker range=">= aspnetcore-10.0"
6769

6870
The `NotFound` component (`NotFound.razor`) implements a Not Found page to display when content isn't found for a request path. For more information, see <xref:blazor/fundamentals/navigation#not-found-responses>.
6971

70-
moniker-end
72+
:::moniker-end
73+
74+
:::moniker range=">= aspnetcore-8.0"
7175

7276
The `App` component (`App.razor`) is the root component of the app with HTML `<head>` markup, the `Routes` component, and the Blazor `<script>` tag. The root component is the first component that the app loads.
7377

@@ -316,28 +320,28 @@ Project structure:
316320
* `NavMenu` component (`NavMenu.razor`): Implements sidebar navigation. Includes the [`NavLink` component](xref:blazor/fundamentals/navigation#navlink-component) (<xref:Microsoft.AspNetCore.Components.Routing.NavLink>), which renders navigation links to other Razor components. The <xref:Microsoft.AspNetCore.Components.Routing.NavLink> component automatically indicates a selected state when its component is loaded, which helps the user understand which component is currently displayed.
317321
* `NavMenu.razor.css`: Stylesheet for the app's navigation menu.
318322

319-
moniker-end
323+
:::moniker-end
320324

321-
moniker range=">= aspnetcore-10.0"
325+
:::moniker range=">= aspnetcore-10.0"
322326

323327
* `Pages` folder: Contains the Blazor app's routable Razor components (`.razor`). The route for each page is specified using the [`@page`](xref:mvc/views/razor#page) directive. The template includes the following components:
324328
* `Counter` component (`Counter.razor`): Implements the Counter page.
325329
* `Index` component (`Index.razor`): Implements the Home page.
326330
* `Weather` component (`Weather.razor`): Implements the Weather page.
327331
* `NotFound` component (`NotFound.razor`): Implements a Not Found page to display when content isn't found for a request path. For more information, see <xref:blazor/fundamentals/navigation#not-found-responses>.
328332

329-
moniker-end
333+
:::moniker-end
330334

331-
moniker range=">= aspnetcore-8.0 < aspnetcore-10.0"
335+
:::moniker range=">= aspnetcore-8.0 < aspnetcore-10.0"
332336

333337
* `Pages` folder: Contains the Blazor app's routable Razor components (`.razor`). The route for each page is specified using the [`@page`](xref:mvc/views/razor#page) directive. The template includes the following components:
334338
* `Counter` component (`Counter.razor`): Implements the Counter page.
335339
* `Index` component (`Index.razor`): Implements the Home page.
336340
* `Weather` component (`Weather.razor`): Implements the Weather page.
337341

338-
moniker-end
342+
:::moniker-end
339343

340-
moniker range=">= aspnetcore-8.0"
344+
:::moniker range=">= aspnetcore-8.0"
341345

342346
* `_Imports.razor`: Includes common Razor directives to include in the app's components (`.razor`), such as [`@using`](xref:mvc/views/razor#using) directives for namespaces.
343347

0 commit comments

Comments
 (0)