Configuring the resources
Resource management is one of the major differences between .NET MAUI and Xamarin.
When it comes to cross-platform development, each platform has its own way of managing resources, and it’s a daunting task for the development team to know and manage all those things. For example, we must include images in multiple sizes to support different resolutions.
In Xamarin, most of the resources are managed separately in platform-specific projects. If we want to add an image, we must add the image files with different sizes to all platform projects separately.
.NET MAUI provides an elegant solution to manage resources effectively. The design goal of one single project for all supported platforms helps to manage resources in one place.
In .NET MAUI, resource files can be tagged into different categories using a build action based on the role they play in the project, as we can see in Table 2.2:
... |