. The following `_Imports.razor` files show the default namespaces in apps generated from the Blazor project templates. The placeholder `{ASSEMBLY NAME}` is the app's assembly name.
+
+ Blazor WebAssembly (`_Imports.razor`):
+
+ ```razor
+ @using System.Net.Http
+ @using System.Net.Http.Json
+ @using Microsoft.AspNetCore.Components.Forms
+ @using Microsoft.AspNetCore.Components.Routing
+ @using Microsoft.AspNetCore.Components.Web
+ @using Microsoft.AspNetCore.Components.Web.Virtualization
+ @using Microsoft.AspNetCore.Components.WebAssembly.Http
+ @using Microsoft.JSInterop
+ @using {ASSEMBLY NAME}
+ @using {ASSEMBLY NAME}.Shared
+ ```
+
+ Blazor Server (`_Imports.razor`):
+
+ ```razor
+ @using System.Net.Http
+ @using Microsoft.AspNetCore.Authorization
+ @using Microsoft.AspNetCore.Components.Authorization
+ @using Microsoft.AspNetCore.Components.Forms
+ @using Microsoft.AspNetCore.Components.Routing
+ @using Microsoft.AspNetCore.Components.Web
+ @using Microsoft.AspNetCore.Components.Web.Virtualization
+ @using Microsoft.JSInterop
+ @using {ASSEMBLY NAME}
+ @using {ASSEMBLY NAME}.Shared
+ ```
+
1. In the `MainLayout` component (`Shared/MainLayout.razor`), surround the component's HTML markup with a `` element that has a `class` attribute set to `page`:
```razor