abp icon indicating copy to clipboard operation
abp copied to clipboard

Migrating to ABP Web App

Open torronen opened this issue 1 year ago • 1 comments

Is there an existing article or article request for this?

  • [X] I have searched the existing resources

Describe the article you'd like

Enhanced version of Blazor Web App migration guide, specifically server to web app. The current document is helpful, but it is unclear if I am expected to create new projects (probably not). Also, I am unable to follow the instrutions step-by-step. I see there are some issues on abp forum about connection issues with abp server, including ours but newer ones as well, and apparently Web App should solve them as well as provide new benefits. So I think it is generally interesting guide.

The existing page https://github.com/abpframework/abp/blob/rel-8.2/docs/en/Migration-Guides/Abp-8-2-Blazor-Web-App.md

Microsoft doc https://learn.microsoft.com/en-us/aspnet/core/migration/70-80?view=aspnetcore-8.0&tabs=visual-studio#convert-a-blazor-server-app-into-a-blazor-web-app

I can share my exact issues and be a test monkey here. My first issues are:

  1. If I create the new projects I get a fully new ABP solution, not only the new Blazor apps
  2. If I try to update according to instructions I am missing some references, likely some Nuget packages. Upgrading with ABP suite to latest 8.2 release candidate worked well.

torronen avatar Jun 26 '24 20:06 torronen

I just went through this process albeit from pure WASM to web app.

What I ended up doing was creating a new ABP solution with the same name using the new template, and moving components, static assets, setup code etc. over into that.

Luckily most of my components were in a separate project which made it easier.

Once I could make the 'new' solution run, I then copied the new blazor .web and .client projects over into the 'old' solution. I added the pages back in that referenced my application entities. I had to make a few changes such as adding the new client details into the auth seeder, into the audiences for the token etc. But overall I found the process workable and the result seems good!

@torronen What particular issues are you encountering apart from the ones you listed?

gdunit avatar Jun 28 '24 07:06 gdunit

@gdunit I have not started the actualy work. I just tried to create a new project or follow the article or follow the microsoft guide, but I was unable or unsure how to do it. I might try what you did. At minimum it will help me understand the changes even I still keep the old solution in the end. I will update here as I start the progress.

However, it seems unnecessarily big work to move to a new solution given that the Microsoft's guide seems simple ( https://learn.microsoft.com/en-us/aspnet/core/migration/70-80?view=aspnetcore-8.0&tabs=visual-studio#convert-a-blazor-server-app-into-a-blazor-web-app )

torronen avatar Jul 02 '24 20:07 torronen

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 06:04 stale[bot]