question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App icon not showing in build

See original GitHub issue

Description

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

  1. Create a new .NET MAUI app
  2. Import image and put into resources folder.
  3. Double click on the .sln
  4. Change app icon Include and ForegroundFile to the path to the file
  5. 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:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
IIARROWScommented, Jan 24, 2022

Yes, but I have the same problem but for Android.

1reaction
AbuMandourcommented, Feb 10, 2022

Yes, but I have the same problem but for Android.

Me too even in splash screen

Read more comments on GitHub >

github_iconTop Results From Across the Web

App icon not showing in build (.NET Maui build on Windows)
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)...
Read more >
App Icons not included in build from Xcode
In my project, I found that a previous AppIcon resource that was working fine no longer resulted in an app icon being rendered....
Read more >
icons not showing on release build…
Hello Sir, I am facing issue after upgrade my Xcode 12.x version. Application showing button image, navigation bar icons image and other image...
Read more >
Any ideas on how to get the icon to appear on an iOS ...
My build is working fine. My app is working fine. But I cannot get the icon to appear on my iPad after I...
Read more >
Icons not showing in windows 10 search
Set the display scaling to 125% and then back to 100 % to fix missing app icons in the search. Do this by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found