
Problem statement
Considering the latest web apps development trends, we split the development into two segments: Front-End and Back-End development. Based on the above two development parts, web apps development requires 2 major roles for developers, and those are Front-End and Back-End developers. Subsequently, the web apps development necessitates various skills on both the front-end and backend sides to build a complete system. Furthermore, there are several front-end frameworks, popularly, Angular, React.js, Vue.js, and JavaScript, which again require different skill sets and developers. However, the most popular choice for backend development, server-side logic is C# and .NET. This creates a complex scenario to build a Web UI with front-end technologies and then again server-side logic with back-end technologies.
On the other hand, we have another problematic situation in building cross-platform and multi-device applications. Subsequently, we need more resources with different skill sets based on platforms. This situation creates the requirements of Android developers for Android devices, iOS developers for iOS devices, Windows developers for Windows devices, and Linux developers for Linux devices. Furthermore, an organization needs to make a huge investment and will require more time to build cross-platform and multi-device applications.
Blazor Hybrid Apps
Let’s not get into a more complicated application development situation, we have a saver, Blazor Hybrid with .net core. Yes, we can easily overcome the above complex scenario by using a Hybrid Blazor app with .NET Core. To be more specific, a Blazor Hybrid App with .NET MAUI is the solution. Blazor will let us develop interactive UI using C# instead of JavaScript or Front-End Frameworks. In other words, we can use back-end or .NET C# skill sets to develop the front-end UI. Blazor can run C# code on the client-side browser.
.NET MAUI
On top of that, .NET MAUI, Multi-platform UI, is a cross-platform framework that allows us to create native mobile and desktop apps using C#. Using Blazor with MAUI, we can develop native Android, iOS, and Desktop applications using the same code and .NET platform with C#.
.NET MAUI, together with Blazor, can enable a single code base of Web UI components for native mobile, desktop, and web applications.
.NET MAUI is an open source, intended to use a reusable single code base UI layout for cross-platform mobile to desktop developments, and have the same application logic. Obviously, this will make the developer’s life easy and reduce the development cost significantly for an organization. Furthermore, we use the same .NET and C# skill sets to develop any kind of app.

Source: Microsoft.com
To know more about .NET MAUI, please refer to the article below.
https://rijsat.com/2022/07/25/getting-started-with-net-maui-cross-platform-application-development/
In this article, we will learn and build a hybrid Blazor app, .NET MAUI Blazor App step by step. I will go through the subsequent points in this write-up.
What is a Hybrid Blazor App
What is .NET MAUI
.NET MAUI Blazor app
Getting started with .NET MAUI Blazor App
Prerequisites of .NET MAUI Blazor App
Create a .NET MAUI Blazor app using Visual Studio
Run and test the .NET MAUI Blazor app in Windows
Run and test the .NET MAUI Blazor app in the Android Emulator
Why to use a .NET MAUI Blazor app
Let’s commence. :)
Prerequisites
First, we need a preview version of Visual Studio, which you can download from https://visualstudio.microsoft.com/vs/preview/ . This preview version includes the MAUI workload and project templates.
Install .NET MAUI Workload as shown below.

Alternatively, you can enable the preview version in the existing Visual Studio 2022. Please check the article below.
https://rijsat.com/2022/03/03/how-to-enable-preview-version-in-visual-studio/
Additionally, we need Microsoft Edge WebView2, which can be downloaded from the link below.
https://developer.microsoft.com/en-us/microsoft-edge/webview2/
This is required to facilitate web content in our native applications; however, if you are using Visual Studio Emulators, then you don’t need this tool.

Important Note
.NET MAUI Blazor Apps support the following platforms:
iOS 14 or Higher
Android 7.0 (API 24) or higher
macOS 11 or Higher, using Mac Catalyst
However, .NET MAUI app supports more platforms as portrayed below:
iOS 10 or higher
Android 5.0 (API 21) or higher
macOS 10.15 or higher, using Mac Catalyst
Windows 11 and Windows 10 version 1809 or higher
https://docs.microsoft.com/en-us/dotnet/maui/supported-platforms
Create a .NET MAUI Blazor app using Visual Studio
Now we will create a complete .NET MAUI Blazor App solution. Let’s begin by launching the Visual Studio 2022 Preview Version as shown below.

We will create a new project screen. Then we will search the MAUI project templates and choose the .NET MAUI Blazor App as portrayed below.

We will give a project name and choose a location.

Choose .NET 6 as the target framework.

At this point, our .NET MAUI Blazor app project has been created successfully.

If we expand the platforms folder of the project, we will find all the platforms that .NET MAUI supports, as shown below.

















Mohamed HanifaPosted Nov 2, 2022, 5:53 AM
Thanks for your article. So, can we host into IIS and open as web app from browser?
Miguel TeheranPosted Sep 6, 2022, 2:00 PM
Well explanied