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.

Developer technologies | .NET | Xamarin
Developer technologies | .NET | Blazor
Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Yogi 356 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) 82,601 Reputation points Volunteer Moderator
    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 6,127 Reputation points Microsoft Employee Moderator
    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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.