Mobile Application using Blazor

Mohammad Arsalan 1 Reputation point
2022-08-30T06:05:42.04+00:00

I was trying to build mobile application using Blazor and then I came across this article https://learn.microsoft.com/en-us/mobile-blazor-bindings/ it uses Xamarin and some razor page to create mobile application. My main concern is can I use it to make mobile application for production? Because in the article it uses "Experimental" term.

Also I came across Blazor hybrid that uses .NET MAUI Blazor App (Preview) package to convert existing Blazor website code into mobile application. But I cannot find this package on my Visual Studio Community 2022 version 17.2.5 so I am stuck. This issue was created and later closed https://github.com/dotnet/maui/issues/3238.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,366 questions
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,625 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,727 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Yogi 351 Reputation points
    2022-08-30T12:39:11.817+00:00

    Microsoft is putting emphasis on .NET MAUI for building mobile app. So I suggest you to go with it. Other than that you can use Xamarin to. I don't suggest you to build with Blazor because it is a hybrid. Better you use a fully built technology like .NET MAUI.


  2. Bruce (SqlWork.com) 68,306 Reputation points
    2022-08-30T17:37:23.867+00:00

    The mobile binding is for existing xamarin projects. As xamarin is being replaced by Maui, new project should use Maui.

    Note: you just use a webview to host a blazor app, so any mobile sdk can support blazor.

    0 comments No comments

  3. Rob Caplan - MSFT 5,542 Reputation points Microsoft Employee
    2022-08-30T17:48:03.21+00:00

    I cannot find this package on my Visual Studio Community 2022 version 17.2.5 so I am stuck

    MAUI, including MAUI Blazor, is out of preview. It is a released and supported product. MAUI tooling was first generally released in Visual Studio 2022 17.3. Prior to that it was available only in the preview track. If you upgrade you should be able to add the MAUI workflow from the VS installer. MAUI tooling is still preview in VS for Mac and available only in the preview track.

    As an experimental project, Mobile Blazor Bindings is not supported on Q&A. If you have questions about it please post in its GitHub at https://github.com/xamarin/MobileBlazorBindings . I believe it has been superseded by the Blazor Desktop feature for MAUI, WPF, and WinForms.

    0 comments No comments

  4. AlexChow 11 Reputation points MVP
    2022-12-07T21:29:00.677+00:00

    It can be said that it has to wait for a while to mature. MAUI still has issue for improvement in my experiments


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.