-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Appicon cannot be changed #4340
Comments
any updates on this ? |
We're also unable to use any app icon at all, tested on 2 Android devices (and Emulator) with 2 different machines and installations of VS17.1-17.2 Preview. We used various SVG files for our tests. |
any updates on this ? |
Is this thread dead without resolution? |
We found a possible cause and a workaround: |
@blackforest-tom how to solve issue feom visual studio 2022 ? |
@cetindogu |
verified repro on Android 11. repro sample: |
I have a similar problem but not the same : if I move the appicon.svg from /Resources to /Resources/Images IMHO, the folder shouldn't matter as it's a MauiIcon and it should use my path to generate things. |
I think this is a duplicate of #5652 and I think half the time when files are moved in VS the IDE decides it does not want to track the files and adds an explicit remove for everything. You can see things like this in the repo csproj: <ItemGroup>
<MauiImage Remove="Resources\Images\new256icon.png" />
</ItemGroup> Also, if you look at the android manifest you can see that it explicitly sets the icon to be As of GA, the MauiIcon was just to generate the icons in the correct format and then the correct icon would be selected by the developer in the manifest. This was because you can actually have multiple icons in an all and you can change them at runtime. However, I do believe not setting the icon to at least the first one (and most likely the only one) is a much better experience. If you want a specific one, you can totally go edit the manifest with the correct one and then add the rest as the activity alias. Improvements are happening here: #7968 Closing this as a result of the duplicate and the issue will be tracked there. |
Description
I am following this article to change the appicon.
https://docs.microsoft.com/en-us/dotnet/maui/user-interface/images/app-icons?tabs=android
but it does not work.
I am using V2022 Version 17.1.0 Preview 4.0
Here is the link to screen recording for the project
Screen Recording of the problem
The repo is located at
Online Repo
Steps to Reproduce
1.Create a File > New .NET MAUI App
2. copy my .png file that i want to use as appicon to the Resource\Images folder.
3. update project file to reference this new .png file
run the project in android simulator/emulator and it still shows the default icon for the installed app on the emulator.
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows
Affected platform versions
iOS 15 and Android 11
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: