unoplatform / uno.resizetizer

The home for Uno.Resizetizer, an image resizting tooling for Uno Platform apps
https://platform.uno
Other
15 stars 6 forks source link

[WinAppSDK Packaged] Taskbar icon and app icon are not set #269

Closed MartinZikmund closed 2 weeks ago

MartinZikmund commented 1 month ago

Current behavior

When I replaced the icon_foreground.svg file and splash_screen.svg file with custom svg, see repro; and ran the app, the title bar icon was set correctly, but the app's start menu icon remained Uno logo and task bar icon is invisible:

image

Expected behavior

Should work out of the box.

How to reproduce it (as minimally and precisely as possible)

  1. Create a blank Uno app or default preset Uno app
  2. Replace the icon_foreground.svg and splash_screen.svg with this file
  3. Clean bin/obj just to make sure changes are applied
  4. Rebuild to make sure changes are applied
  5. Run the Windows App SDK target (Packaged)
  6. Notice taskbar icon is invisible and app icon in start menu is just plain Uno Platform logo

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

Visual Studio:

Relevant plugins:

Anything else we need to know?

jeromelaban commented 1 month ago

@MartinZikmund Could it be that the app should be reinstalled to have this work? Feels like a winappsdk issue.

dansiegel commented 1 month ago

@MartinZikmund have you looked in the obj to see what the files were that got generated? Were they generated as expected or was there an issue with what Resizetizer generated there?

MartinZikmund commented 1 month ago

@jeromelaban I tried uninstall, but that didn't help

@dansiegel will try and let you know đź‘Ť

MartinZikmund commented 4 weeks ago

@dansiegel @jeromelaban indeed when I now tried on a different device the icon appears correctly. This seems like Windows cached the icons somehow and kept it even though I uninstalled the app completely in between. I will add docs on how to reset icon cache, as that might help in such situation