Skip to content

Add info that duplicate image filename errors can occur when a png and svg have the same name #1883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
E4est opened this issue Nov 15, 2023 · 1 comment · Fixed by #1890
Closed
Assignees
Labels
doc-enhancement Improve the current content [org] Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.

Comments

@E4est
Copy link

E4est commented Nov 15, 2023

Type of issue

Missing information

Description

The provided information on why the duplicate image filename errors might occur helped me find the issue in our project, but maybe an addition could help people in the future a bit faster.

If there are two files named dotnet_bot.png and dotnet_bot.svg, the error will also occur.

In our case we had these two entries

    <MauiImage Include="Resources\Images\PNG\*" />
    <MauiImage Include="Resources\Images\SVG\*" BaseSize="512" />

and since our images are in seperate folders, the source of the issue wasn't clear immediately.

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/troubleshooting?view=net-maui-8.0#duplicate-image-filename-errors

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/troubleshooting.md

Document Version Independent Id

1cdfd37b-a119-da4e-a56e-a60dde31bb18

Article author

davidbritch


Associated WorkItem - 183661

@davidbritch davidbritch self-assigned this Nov 16, 2023
@davidbritch davidbritch added the doc-enhancement Improve the current content [org] label Nov 16, 2023
@davidbritch davidbritch added the 🗺️ reQUEST Triggers an issue to be imported into Quest. label Nov 16, 2023
@davidbritch
Copy link
Contributor

Good catch. Fundamentally this occurs because SVG files are converted into PNGs when the app is built. Then, on some platforms all of the images are placed in the same folder in the app package, regardless of how they're structured in the VS solution. Hence the naming collision.

Anyway, I'll get the doc updated.

@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in dotnet/docs-maui 2023 Sprints Nov 16, 2023
@github-actions github-actions bot added 📌 seQUESTered Identifies that an issue has been imported into Quest. and removed 🗺️ reQUEST Triggers an issue to be imported into Quest. labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content [org] Pri3 📌 seQUESTered Identifies that an issue has been imported into Quest.
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants