You can go to the "Package.appxmanifest", switch to visual properties and generate those icon pngs and then change their build option to content.Then you will see the icon on taskbar.This worked for me
Can't set icon in Taskbar
Hi,
I'm developing my first WinUI 3 app using the WindowsAppSDK. My struggle is with setting the icon for the app and in the Windows Taskbar.
Setting the icon for the main window works well with the 'SetIcon' method of the AppWindow instance. But I can't get it onto the Taskbar, not from the manifest or from code.
I have also tried the AppWindow sample on GitHub (https://github.com/nickrandolph/AppWindowSample), but with same result.
Any ideas what could be the cause of the issue here? Are there special requirements for the icon? (my expertise is mostly in Windows Forms so it is very well possible that I have missed something here). My Windows version is 11.
Windows development | Windows App SDK
2 answers
Sort by: Most helpful
-
-
Castorix31 90,686 Reputation points
2022-06-24T10:07:26.783+00:00 It is in Properties, Win32 Resources (this had been asked : App Icon - Windows App SDK)