-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App icon not showing in build #3755
Comments
Seems like for unpackaged executables you need to set the icon manually via <ApplicationIcon> property in the csproj. Would be great if Maui would also be able to handle Win32 icons natively. |
Het, i don't really see any documentation for ApplicationIcon. How do i use it? |
like Then (put it in
and set it via
in your Application entry point. (And kudos to the maui maintainers for making the window handle so easily accessible.) |
Hey! Thanks again for the response! I have a few problems now. Right now VS isn't recognizing System.Drawing.Icon, PInvoke, or MauiWinUIWindow. Control + space doesn't pull up any results. Also when using ApplicationIcon like you specified, I |
I'm pretty sure it doesn't work for Android though... |
For Android the normal MauiIcon works fine for me. This workaround is exclusively for windows. |
Yes, but I have the same problem but for Android. |
Me too even in splash screen |
Verified Repro. Repro project is available: |
I am seeing the same issue with Android and iOS the builds fail complaining they can't find the AppIcon this is VS22 17.2.0 Preview 1.0 and MAUI SDK version of 6.0.200-preview.13 However I solved this by:
Not perfect and the issue is still there but with Preview 13 this seems an easy fix. |
I want to say that it works for me now, I think it's from the last update. |
This fix is only for Android and iOS correct? Will it work on Windows and Mac? |
Only SVG's were supported for app icons up until a more recent release but should be now. Please open a new issue if you still have problems with it. |
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
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
The text was updated successfully, but these errors were encountered: