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.
Mobile Application using Blazor
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.
4 answers
Sort by: Most helpful
-
-
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.
-
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.
-
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