dotnet / dotnet/android

Support "app icons" in the csproj

Open
#7,147 1 comment 2 reactions 1 assignee Claimed by @jonathanpeppers View on GitHub
Area: App+Library Build enhancement
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 20h
Merged PRs (30d)
257

Description

### Android application type

Android for .NET (net6.0-android, etc.)

### Affected platform version

All

### Description

Right now we are almost there with resizetizer (icon generation) for mobile apps. We have tasks that generate all the drawables and add it to the app, but the final step the user has to go edit the manifest and link the drawables/mipmaps to the xml file.

It would be great to be able to get resizetizer to output some build item/property and have the android build insert the values into the manifest.

@jonathanpeppers mentioned that editing the manifest from a build task may break incremental builds and/or fast deploy processes.

This is also consistent with Windows and Tizen which support automatic manifest updates.

### Steps to Reproduce

1. File | New | Maui
2. Replace the icon file with one with a new name (or rename)
3. Fix the csproj with the new name
4. Observe the build log shows the new images (and see in the obj dir)
5. Observe the build fails because the manifest also needs updating

### Did you find any workaround?

Editing the manifest, but this is the issue.

### Relevant log output

_No response_

### iOS/Mac Issue

- https://github.com/xamarin/xamarin-macios/issues/15398
- https://github.com/xamarin/xamarin-macios/issues/12790
- Context: https://github.com/dotnet/maui/pull/8063

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.