AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Provide guidance on how to switch an app from Blazor Server to Blazor WebAssembly and the reverse

Open danroth27 opened this issue 5 years ago • 9 comments

We should provide guidance on how to take a Blazor Server app and convert it to a Blazor WebAssembly app and the reverse.

danroth27 avatar Mar 13 '20 00:03 danroth27

Is this merely related to ... or is it a dup of ... https://github.com/dotnet/AspNetCore.Docs/issues/12572?

guardrex avatar Mar 13 '20 01:03 guardrex

They are certainly related, although the scenarios are a bit different. This issue is about migrating from one hosting model to the other. #12572 is about having a hybrid app that can do either hosting model. There's certainly a lot of overlap between these two topics.

danroth27 avatar Mar 13 '20 03:03 danroth27

Switch is merely conversion, and that's easy enough to work out.

~When we come to #12572, I'll either need notes/snippets on how to compose it or one of the engineers to hack up a sample.~

~I wish both subjects could be covered in the same topic to economize coverage of related subject matter.~

~If covered together in a new topic .........~

  • ~ASP.NET Core Blazor hosting model conversion and hybrid apps~
  • ~Physical location (URL): blazor/hosting-model-conversion-and-hybrid-apps.md~
  • ~TOC: Hosting model conversion and hybrid apps (position it after the existing Hosting models configuration topic)~
  • ~UID: blazor/hosting-model-conversion-and-hybrid-apps~

~If not a new topic, can these subjects be covered in new sections of the Hosting model configuration topic?~

UPDATE (11/2/22): These subjects are in discussion offline.

guardrex avatar Mar 13 '20 05:03 guardrex

From a user perspective, both topics would be great to have. For me currently, I already have a production server-side app that seems like it would benefit from moving to web assembly, due to network latency. From what I have seen of the preview sample template, its missing quite a bit, such as the ability to setup authentication from the start. Looking forward to the work on this documentation, and it is most appreciated.

shoffma1 avatar Mar 13 '20 13:03 shoffma1

its missing quite a bit, such as the ability to setup authentication from the start.

We just loaded those docs for preview. The scenarios aren't supported for production just yet. You can see those preview topics starting at :point_right: https://docs.microsoft.com/aspnet/core/security/blazor/webassembly/

guardrex avatar Mar 13 '20 13:03 guardrex

Anything new here since Build/Blazor 3.2 RTM?

MisinformedDNA avatar May 26 '20 20:05 MisinformedDNA

There's a sample of this now ... see https://github.com/danroth27/BlazorNet5Samples.

We'll get this topic/section done asap, but it should follow the Blazor WASM security work. I have this as a high P2 priority item, and I hope to get to it soon-ish ... within a couple of weeks. In the meantime, check out the sample app :point_up:.

guardrex avatar Sep 24 '20 16:09 guardrex

So much for "within a couple of weeks" ... yeah ... right! :smile:

It's not clear if this can be reached until 2021 due to the need for UE passes on all of the Blazor topics because they've become fairly messy due to all of the content churn over the last few years, but I will try to squeeze it in. If not reached before mid-December, then I'll try to work this early in 2021 ... January hopefully 🤞.

guardrex avatar Nov 13 '20 12:11 guardrex

UPDATE (11/2/22): This issue is in discussion offline right now. I'll post an update as soon as I hear back if the update doesn't come directly from DR or Artak.

guardrex avatar Nov 02 '22 10:11 guardrex

@danroth27 @mkArtakMSFT ... Do you still want this worked? I'm trying to work off the backlog, and I don't recall what you decided on this one.

If we do ... I'm glad that we (cough cough ... I ... cough 😄) waited this long. Any such conversion topic will need attention every release, and I think ... hope ... things are stable enough to make coverage for this stable going forward.

If we proceed with coverage, I recommend that we go >=7.0 and not cover prior releases, but let me know which versions you want covered.

guardrex avatar Feb 06 '23 12:02 guardrex

Hi Luke,

Let’s hold on this one until we’re closer to shipping .NET 8. This content will likely be impacted by the Blazor United work we’re doing for .NET 8.

Daniel Roth

danroth27 avatar Feb 06 '23 16:02 danroth27

Thanks @danroth27 ... Will do! 👍

guardrex avatar Feb 06 '23 16:02 guardrex

@danroth27 ... Looks like Full-stack web UI feature coverage will make this issue obsolete. Should it be closed? 🗑️

guardrex avatar May 01 '23 11:05 guardrex