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

Chapter 5 User Interface Essentials

Figure 5-1.  Your application icon

If you look in the contents of your project file, you will see the following entry:

<MauiIcon Include="Resources\AppIcon\appicon.svg" />

This tells the tooling to use the file appicon.svg and convert it into all the required sizes for each platform when building. Note you only want one MauiIcon in your project file. If you have multiple, the first one will be used.

You do not need to replace the above entry as the file you should have downloaded should have the name appicon.svg. If the file name is different, either rename it or update the name in the project file.

Platform Differences

It is worth noting that some platforms apply different rules to app icons and also can provide rather different outputs.

117