AathifMahir / MauiIcons

MauiIcons is Icon Collection Library for .Net Maui
MIT License
196 stars 13 forks source link

Icon Fonts not showing up in Unpackaged Windows Deployment #79

Open KaFo opened 9 months ago

KaFo commented 9 months ago

Describe the bug When using new .NET8 Unpackaged Windows Deployment the icon font is not included/applied in the published App. (MauiIcons 2.0). I haven't tested with MSIX deployment yet, so can't say if it works there.

I made simple example based on .NET8 Maui Hello World template. I only replaced the dot net bot image with a Mood Material Icon.

See code in GitHub Repo (MauiIcon branch)

or patch against base template here: MauiIconsInHelloWorldMaui.patch

This is how it looks like from IDE: OK image

published: NOT OK image

AathifMahir commented 9 months ago

Thanks for reporting this issue, I'll try diagnosing this issue on Sample Application and Get Back to you

AathifMahir commented 9 months ago

@KaFo Also would you mind explaining the patch url? What is that file

Screenshot_20231215_144511_Chrome

KaFo commented 9 months ago

Thanks for the ultra fast response (and thanks for the great package, much appreciated!) The Patch just illustrates the changes I made to the hello world app. So basically the stuff you have to do to go from blank hello world to an app that reproduces the issue. You can ignore it if you reproduce yourself or use the github example branch I provided.

AathifMahir commented 9 months ago

@KaFo the issue seems to be related this issue https://github.com/dotnet/maui/issues/9104

Will investigate this further and come with a solution as soon as possible

KaFo commented 8 months ago

Hi. Thank you for investigating this. Seems quite a few problems with maui development end up being bugs@microsoft... But at least they gave it prio "p/1". Which means "Work that is critical for release but we can probably ship without". Hargh Hargh. :-)

LukasKStavario commented 7 months ago

Hi I have same problem here, any solution?

AathifMahir commented 7 months ago

Hi I have same problem here, any solution?

We are waiting for fix on Maui Side, as far as now, I'm not aware of any workarounds

AathifMahir commented 3 months ago

Hello Folks,

Update on this issue, This issue is finally Fixed with Win2D v1.2.0, we can expect to Maui to update the Win2D Dependency to v1.2.0 upcoming service releases. Once that's done, we can finally close this issue

jeremy-visionaid commented 3 months ago

AFAIK, the upstream issue was fixed months ago in Maui. I haven't tried the project myself, but at a quick glance it looks like MauiVersion here has been left at its default, so its value would be defined by the toolchain (currently Maui 8.0.21 assuming VS 17.10.1), currently latest Maui is 8.0.40. But the Win2D dependency could also be bumped explicitly with a PackageReference (if you're targetting 8.0.10 or later).