Single Code, Single UI web application + apps

Kevin Azure 141 Reputation points
2023-01-13T01:30:19.5066667+00:00

I want to create a web application which can be extended by apps too.

[single coding, single html ui - reusable as website, ios app, android app - no desktop app]

Is .Net MAUI the best tool to create same?

What are the design & strategies involved?

Please advice.

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,378 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,844 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,204 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,996 Reputation points Microsoft Vendor
    2023-01-13T07:58:04.9733333+00:00

    Hello,

    Blazor Hybrid support is built into the .NET Multi-platform App UI (.NET MAUI) framework and can be built with Windows Presentation Foundation (WPF) and Windows Forms. You can choose MAUI if you want to build for iOS, Android app.

    Additionally, by using .NET MAUI and Blazor together, you can reuse one set of web UI components across mobile, desktop, and web. That might be what you mean by "single coding, single html ui". Please refer to the doc- Reuse Razor components in ASP.NET Core Blazor Hybrid

    For more details, you can refer to
    ASP.NET Core Blazor Hybrid | Microsoft Learn
    Host a Blazor web app in a .NET MAUI app using BlazorWebView - .NET MAUI | Microsoft Learn

    Best Regards, Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentationto enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful