You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/project-structure.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,11 +63,15 @@ The `Components` folder of the server project holds the app's server-side Razor
63
63
64
64
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.
65
65
66
-
moniker range=">= aspnetcore-10.0"
66
+
:::moniker-end
67
+
68
+
:::moniker range=">= aspnetcore-10.0"
67
69
68
70
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>.
69
71
70
-
moniker-end
72
+
:::moniker-end
73
+
74
+
:::moniker range=">= aspnetcore-8.0"
71
75
72
76
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.
73
77
@@ -316,28 +320,28 @@ Project structure:
316
320
*`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.
317
321
*`NavMenu.razor.css`: Stylesheet for the app's navigation menu.
318
322
319
-
moniker-end
323
+
:::moniker-end
320
324
321
-
moniker range=">= aspnetcore-10.0"
325
+
:::moniker range=">= aspnetcore-10.0"
322
326
323
327
*`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:
324
328
*`Counter` component (`Counter.razor`): Implements the Counter page.
325
329
*`Index` component (`Index.razor`): Implements the Home page.
326
330
*`Weather` component (`Weather.razor`): Implements the Weather page.
327
331
*`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>.
*`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:
334
338
*`Counter` component (`Counter.razor`): Implements the Counter page.
335
339
*`Index` component (`Index.razor`): Implements the Home page.
336
340
*`Weather` component (`Weather.razor`): Implements the Weather page.
337
341
338
-
moniker-end
342
+
:::moniker-end
339
343
340
-
moniker range=">= aspnetcore-8.0"
344
+
:::moniker range=">= aspnetcore-8.0"
341
345
342
346
*`_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.
0 commit comments