Conversation
Avalonia's Window.Icon only sets the title bar via WM_SETICON. The Windows taskbar, Explorer, and shortcuts read the icon embedded in the .exe's Win32 resources, which the apphost has no way to populate without ApplicationIcon set on the project. Add a multi-resolution app.ico (16, 24, 32, 48, 64, 128, 256) generated from the existing monster PNG and reference it from the csproj.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Avalonia's
Window.Icononly sets the title bar (viaWM_SETICON). The Windows taskbar, Explorer, and Start Menu shortcuts all read the icon embedded in the .exe's Win32 resources, which the apphost can only populate when<ApplicationIcon>is set on the project. Without it, the installed build shows a generic icon in the taskbar even though the title bar renders correctly.Generated
app.icofrom the existing monster PNG with seven sizes (16, 24, 32, 48, 64, 128, 256) so the OS picks the appropriate resolution per context. Source PNG is 613x596 — padded to a square canvas with transparent background before downscaling so nothing is cropped.