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

Chapter 14 Releasing Our Application

private set => SetProperty(ref this.boards, value);

}

public void LoadBoards()

{

Boards = this.boardRepository.ListBoards();

}

This new code will result in the UI only being updated once rather than once per each board that is added to the Boards collection.

Linking

While devices these days do tend to offer generous amounts of storage space, it is still considered a very good practice to minimize the amount of memory your apps really consume, especially when considering mobile devices that have limited data networks in order to download the apps.

What Is Linking?

Linking is performed by the Linker to remove unused code from compiled assemblies. This helps to reduce the size of your applications by trimming out any unused parts of libraries that you use.

Linking is a highly complex topic and I am only really scratching the surface. For further reference, I recommend checking out the Microsoft documentation at https://learn.microsoft.com/xamarin/ios/deploytest/linker.

The Linker provides the fantastic ability to reference the full .NET base class library so when you compile your application ready for distributing, it will only include the parts of that BCL that you actually reference and use within your application.

421