Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
lawrence_shaun_introducing_net_maui_build_and_deploy_crosspl.pdf
Скачиваний:
46
Добавлен:
26.06.2023
Размер:
5.15 Mб
Скачать

Chapter 1 Introduction to .NET MAUI

Limitations of .NET MAUI

I hope this doesn’t get me in too much trouble with the wonderful team over at Microsoft ☺. This section is not aimed at slating the technology (I wouldn’t be writing a book about something I didn’t believe in); it is purely aimed at making clear what cannot be achieved or at least what is not provided out of the box, to help you as a reader best decide whether this is the right technology for your next project. Of course, I hope it is, but let’s look at what I feel are its main limitations.

No Web Assembly (WASM) Support

.NET MAUI does not provide support for targeting Web Assembly. This means that you cannot target the web directly from a .NET MAUI project, but you can still run Blazor inside your .NET MAUI application. This opens the door for further code sharing; as discussed earlier, it is entirely possible to build Blazor components that can be shared between .NET MAUI Blazor and .NET Blazor applications.

If you do require direct WASM support, then a good alternative to .NET MAUI is the Uno Platform.

No Camera API

This has been a pain point for a lot of developers throughout the life of Xamarin.Forms and continues to be an initial pain point for .NET MAUI. There are some good arguments as to why it hasn’t happened.

Building a camera API against the Android Camera offering has not been an easy task, as I am sure most developers who have embarked on that journey can attest to. The sheer fact that Google is rewriting the entire API for a third time shows the inherent challenges.

13