App icon not showing in build
See original GitHub issueDescription
Hey, so I’m making an app and I’m trying to change the app icon (you know, the icon that shows in your taskbar) but what i tried doesn’t work. This is a code snippet from my .csproj file
<!-- App Icon --> <MauiIcon Include="Resources\app_icon.png" ForegroundFile="Resources\app_icon.png" IsAppIcon="true"/>
I double checked to make sure all the file names and locations were correct. Is there something I’m missing? Btw I’m not entirely sure what .NET MAUI version I have but I’m pretty sure it’s 10 just because when I look at the VS installer there is no update option and 10 is “current”.
(Bonus points if you can tell me how to change the app to be a fixed resolution, un-sizeable window)
Steps to Reproduce
- Create a new .NET MAUI app
- Import image and put into resources folder.
- Double click on the .sln
- Change app icon Include and ForegroundFile to the path to the file
- Save and build for WindowsMachine
Version with bug
Preview 10 (current)
Last version that worked well
Preview 10 (current)
Affected platforms
Windows
Affected platform versions
Windows 11
Did you find any workaround?
No response
Relevant log output
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (5 by maintainers)

Top Related StackOverflow Question
Yes, but I have the same problem but for Android.
Me too even in splash screen