This project demonstrates how to build an ASP.NET Core hosted Blazor WebAssembly app with .NET 8 and how to upgrade existing apps to take advantage of the latest features.
To upgrade an existing ASP.NET Core hosted Blazor WebAssembly app to .NET 8:
net8.0
and package references to the latest .NET 8 versions (commit).title
tag with HeadOutlet
component.builder.RootComponents.Add<HeadOutlet>("head::after")
.builder.Services.AddRazorComponents().AddWebAssemblyComponents()
.app.UseBlazorFrameworkFiles()
.MapFallbackToFile("index.html")
with app.MapRazorComponents<Host>().AddWebAssemblyRenderMode()
.To enable prerendering:
id=app
tag with <App @rendermode="@RenderMode.WebAssembly" />
(commit).Open issues: