Open Closed

Updating Blazor to using App.razor #9916


User avatar
0
maggieryanmail@gmail.com created

I am updating my Blazor server project from 9.0.5 to 9.3.3.

I am experiencing various issues, which I believe are related to the migration from _Host.cshtml to App.razor.

Could you please document what I need to do in order to update my project to the latest version? There is nothing about it in the migration guide.

Thank you.


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    1. Create a project with the same name and copy the App.razor and Routes.razor files to your old solution.
    2. Add @using static Microsoft.AspNetCore.Components.Web.RenderMode to your _Imports.razor

    1. Update your BlazorServerModule code to add the code below:

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 22, 2025, 10:12