Blazor Web App Converter

•
3.4k
•

Migrates legacy Blazor Server applications to the modern .NET 8+ Blazor Web App model with automated refactoring.

This skill provides a structured workflow for upgrading pre-.NET 8 Blazor Server applications to the unified Blazor Web App model introduced in .NET 8. It handles the complex transition from Razor Pages hosting to the component-based App.razor model, updates service registrations in Program.cs, configures interactive server render modes, and ensures compatibility with new features like enhanced navigation and antiforgery middleware. It is an essential tool for developers looking to modernize their .NET web stack while maintaining existing interactive server-side logic.

主な機能

01Migrates authentication states to the service-based model
02Extracts Router configuration into a dedicated Routes.razor file
03Converts _Host.cshtml into a root App.razor component
043,370 GitHub stars
05Refactors Program.cs to use AddRazorComponents and MapRazorComponents
06Updates Blazor scripts and target framework monikers (TFM)

ユースケース

01Adopting per-component render modes in an existing server-side project
02Implementing enhanced navigation and streaming rendering in legacy apps
03Modernizing a .NET 6 or 7 Blazor Server app to .NET 8 or higher