Empty Blazor Server Template
Learn the structure of the empty Blazor Server project template.
We'll cover the following...
The Blazor Server Empty project template provides only the essential components required for building a Blazor Server application. An example of this template is provided in the code widget below.
<Router AppAssembly="@typeof(App).Assembly"> <Found Context="routeData"> <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> <FocusOnNavigate RouteData="@routeData" Selector="h1" /> </Found> <NotFound> <PageTitle>Not found</PageTitle> <LayoutView Layout="@typeof(MainLayout)"> <p role="alert">Sorry, there's nothing at this address.</p> </LayoutView> </NotFound> </Router>
Empty Blazor Server project setup
The essential Blazor Server components
If we look at the application entry point represented by ...