dotnet / dotnet/maui

Android does not handle images/splash/icons with the same name and overwrites

Open
#9,170 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-single-project t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 14h
Merged PRs (30d)
296

Description

Description

Right now, generated images may overwrite other images if they have the same name. This is because if you have an svg MauiImage, the final image has the same name as that original file. Then, if you have a SVG for the splash screen with the same name, it has no way of picking another name.

Workaround

One solution would be to use a Link="NewNameHere":

<MauiImage Include="samename.svg" Link="anothername.svg" />

Related to:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Android asset generation for MauiImage and SVG splash-screen inputs, focusing on how output names are chosen when source names collide. Reproduce the collision described with same-named image and splash assets, then verify that generated files no longer overwrite one another while the Link workaround remains unnecessary.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.