'Create the same Blazor app with both WASM and Server-Side

I would like create a blazor app (two apps actually) that supports both Hosted WASM and Server-Side. They do not need to be a single app that dynamically switch. Actually, I would prefer two separate apps like wasm.myapp.com and server.myapp.com. Users can pick which flavor they prefer to use based on their network environment. Also based on business needs, I could pick one flavor over the other for different scenarios (like browser limitations).

Anyway, is it possible to create two apps that are sharing the same components? Either one app is a shell that references the other app (or vice versa), or two shell apps that reference a third project? Basically the goal is to create one set of UI components/pages that will be shared by both apps.

How do you set it up?

Thanks for any tips.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source