AathifMahir / MauiIcons

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

In release mode, the icons cannot be displayed properly #99

Closed xyeie closed 4 months ago

xyeie commented 4 months ago

Describe the bug In release mode, the icons cannot be displayed properly。In debug mode, everything works fine

To Reproduce Steps to reproduce the behavior:

AathifMahir commented 4 months ago

Describe the bug In release mode, the icons cannot be displayed properly。In debug mode, everything works fine

To Reproduce Steps to reproduce the behavior:

Would you mind sharing which platform that your building for?

xyeie commented 4 months ago

sorry my english is poor.Let me briefly describe it. The IDE version is Visual Studio2022 17.9.6, Maui version 8.0, platform pixel4, android13

xyeie commented 4 months ago

工单1 工单2

AathifMahir commented 4 months ago

I'll try to reproduce this as soon as possible and get back to you @xyeie

AathifMahir commented 4 months ago

@xyeie You can rollback the version of MauiIcons v2.1.5, I found that new binding feature that introduced in v2.2.5 Causing this Issue in Release Mode, I Already Flagged the Build, Will have a Patch for this As soon as Possible

AathifMahir commented 4 months ago

Fixed in #102

@xyeie Update MauiIcons to v3 and Let me know, if your still facing the same

xyeie commented 4 months ago

good job! everything is fine! thanks

rcanacci commented 4 months ago

@xyeie You can rollback the version of MauiIcons v2.1.5, I found that new binding feature that introduced in v2.2.5 Causing this Issue in Release Mode, I Already Flagged the Build, Will have a Patch for this As soon as Possible

Aathif,

This problem is still present in v2.1.5.

Under all other deployment combinations (iOS debug/release, Android debug/release, and Windows debug) the icons work without issue.

Only present under Window release build.

Also - please note that versions 2.2.5 and 3.0.0 I tried both of these as a workaround within my MAUI app. Both versions break the icons totally. Version 2.1.5 is the only one that works properly. Unless there are missing steps for proper installation on your github homepage for this project.

We have been using your icon set for months but these two problems persist:

Thank you in advance for any help. This problem preventing us from deploying our app.

icons-not-displaying-example

AathifMahir commented 4 months ago

@xyeie You can rollback the version of MauiIcons v2.1.5, I found that new binding feature that introduced in v2.2.5 Causing this Issue in Release Mode, I Already Flagged the Build, Will have a Patch for this As soon as Possible

Aathif,

This problem is still present in v2.1.5.

Under all other deployment combinations (iOS debug/release, Android debug/release, and Windows debug) the icons work without issue.

Only present under Window release build.

Also - please note that versions 2.2.5 and 3.0.0 I tried both of these as a workaround within my MAUI app. Both versions break the icons totally. Version 2.1.5 is the only one that works properly. Unless there are missing steps for proper installation on your github homepage for this project.

We have been using your icon set for months but these two problems persist:

  • (IMPORTANT) we cannot build for Windows release mode with the icons, they display as rectangles.
  • We cannot update past v2.1.5; breaks every icon within our XAML code.

Thank you in advance for any help. This problem preventing us from deploying our app.

icons-not-displaying-example

I have tested release build on All the Platforms on v3.0.0 everything worked fine except Unpackaged Windows App which had issue on Maui itself https://github.com/AathifMahir/MauiIcons/issues/79

Can you elaborate what do you mean by that you can't update past v2.1.5 that breaks all the icons? Breaks icons in the sense would you mind explaining that and also if you can please share a code snippet of breaking icons

Additionally, you can build and try MauiIcons.Sample which is what we are using for testing purpose

rcanacci commented 4 months ago

Yes, I am using Unpackaged.

So, you would suggest a different icon library?

On Sun, May 12, 2024 at 1:04 AM AathifMahir @.***> wrote:

@xyeie https://github.com/xyeie You can rollback the version of MauiIcons v2.1.5, I found that new binding feature that introduced in v2.2.5 Causing this Issue in Release Mode, I Already Flagged the Build, Will have a Patch for this As soon as Possible

Aathif,

This problem is still present in v2.1.5.

Under all other deployment combinations (iOS debug/release, Android debug/release, and Windows debug) the icons work without issue.

Only present under Window release build.

Also - please note that versions 2.2.5 and 3.0.0 I tried both of these as a workaround within my MAUI app. Both versions break the icons totally. Version 2.1.5 is the only one that works properly. Unless there are missing steps for proper installation on your github homepage for this project.

We have been using your icon set for months but these two problems persist:

  • (IMPORTANT) we cannot build for Windows release mode with the icons, they display as rectangles.
  • We cannot update past v2.1.5; breaks every icon within our XAML code.

Thank you in advance for any help. This problem preventing us from deploying our app.

icons-not-displaying-example.png (view on web) https://github.com/AathifMahir/MauiIcons/assets/8365271/6c1e402b-99e1-413b-bb2e-59f923234908

I have tested release build on All the Platforms on v3.0.0 everything worked fine except Unpackaged Windows App which had issue on Maui itself

— Reply to this email directly, view it on GitHub https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106120084, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB72JV6ROCXDIVGBNVQS77LZB3Z5BAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGEZDAMBYGQ . You are receiving this because you commented.Message ID: @.***>

AathifMahir commented 4 months ago

Yes, I am using Unpackaged.

So, you would suggest a different icon library?

On Sun, May 12, 2024 at 1:04 AM AathifMahir @.***> wrote:

@xyeie https://github.com/xyeie You can rollback the version of MauiIcons v2.1.5, I found that new binding feature that introduced in v2.2.5 Causing this Issue in Release Mode, I Already Flagged the Build, Will have a Patch for this As soon as Possible

Aathif,

This problem is still present in v2.1.5.

Under all other deployment combinations (iOS debug/release, Android debug/release, and Windows debug) the icons work without issue.

Only present under Window release build.

Also - please note that versions 2.2.5 and 3.0.0 I tried both of these as a workaround within my MAUI app. Both versions break the icons totally. Version 2.1.5 is the only one that works properly. Unless there are missing steps for proper installation on your github homepage for this project.

We have been using your icon set for months but these two problems persist:

  • (IMPORTANT) we cannot build for Windows release mode with the icons, they display as rectangles.
  • We cannot update past v2.1.5; breaks every icon within our XAML code.

Thank you in advance for any help. This problem preventing us from deploying our app.

icons-not-displaying-example.png (view on web) https://github.com/AathifMahir/MauiIcons/assets/8365271/6c1e402b-99e1-413b-bb2e-59f923234908

I have tested release build on All the Platforms on v3.0.0 everything worked fine except Unpackaged Windows App which had issue on Maui itself

— Reply to this email directly, view it on GitHub https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106120084, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB72JV6ROCXDIVGBNVQS77LZB3Z5BAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGEZDAMBYGQ . You are receiving this because you commented.Message ID: @.***>

You can try upgrading Maui to v8.0.21, whether that fixed the issue. If not you need to convert icons one by one to SVG to solve this issue. As far as now we can't use icon as fonts in Unpackaged until this issue is resolved

This issue seems to be fixed v8.0.14 but some users still report that the issue is still exist, therefore now trying the latest Maui Version is only option, if your lucky enough you'd have this working https://github.com/dotnet/maui/issues/15802

rcanacci commented 4 months ago

Aathif,

thank you for the discussion back-and-forth… I tried a few things that you suggested… None of them are working… Based on your Maui experience and some of the other things that I've been reading… Is it fair to say that Microsoft is just not truly supporting the unpackaged building and publishing of a MAUI app?

Should I invest my time pursuing another avenue, like MSIX?

Ron

On Sun, May 12, 2024 at 1:32 AM AathifMahir @.***> wrote:

Yes, I am using Unpackaged.

So, you would suggest a different icon library?

On Sun, May 12, 2024 at 1:04 AM AathifMahir @.***> wrote:

@xyeie https://github.com/xyeie https://github.com/xyeie You can rollback the version of MauiIcons v2.1.5, I found that new binding feature that introduced in v2.2.5 Causing this Issue in Release Mode, I Already Flagged the Build, Will have a Patch for this As soon as Possible

Aathif,

This problem is still present in v2.1.5.

Under all other deployment combinations (iOS debug/release, Android debug/release, and Windows debug) the icons work without issue.

Only present under Window release build.

Also - please note that versions 2.2.5 and 3.0.0 I tried both of these as a workaround within my MAUI app. Both versions break the icons totally. Version 2.1.5 is the only one that works properly. Unless there are missing steps for proper installation on your github homepage for this project.

We have been using your icon set for months but these two problems persist:

  • (IMPORTANT) we cannot build for Windows release mode with the icons, they display as rectangles.
  • We cannot update past v2.1.5; breaks every icon within our XAML code.

Thank you in advance for any help. This problem preventing us from deploying our app.

icons-not-displaying-example.png (view on web)

https://github.com/AathifMahir/MauiIcons/assets/8365271/6c1e402b-99e1-413b-bb2e-59f923234908

I have tested release build on All the Platforms on v3.0.0 everything worked fine except Unpackaged Windows App which had issue on Maui itself

— Reply to this email directly, view it on GitHub

99 (comment)

https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106120084 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AB72JV6ROCXDIVGBNVQS77LZB3Z5BAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGEZDAMBYGQ . You are receiving this because you commented.Message ID: @.***>

You can try upgrading Maui to v8.0.21, whether that fixed the issue. If not you need to convert icons one by one to SVG to solve this issue. As far as now we can't use icon as fonts in Unpackaged until this issue is resolved

— Reply to this email directly, view it on GitHub https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106125463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB72JV4MZ7QX5MBDFGPSNV3ZB35FLAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGEZDKNBWGM . You are receiving this because you commented.Message ID: @.***>

AathifMahir commented 4 months ago

Aathif,

thank you for the discussion back-and-forth… I tried a few things that you suggested… None of them are working… Based on your Maui experience and some of the other things that I've been reading… Is it fair to say that Microsoft is just not truly supporting the unpackaged building and publishing of a MAUI app?

Should I invest my time pursuing another avenue, like MSIX?

Ron

On Sun, May 12, 2024 at 1:32 AM AathifMahir @.***> wrote:

Yes, I am using Unpackaged.

So, you would suggest a different icon library?

On Sun, May 12, 2024 at 1:04 AM AathifMahir @.***> wrote:

@xyeie https://github.com/xyeie https://github.com/xyeie You can rollback the version of MauiIcons v2.1.5, I found that new binding feature that introduced in v2.2.5 Causing this Issue in Release Mode, I Already Flagged the Build, Will have a Patch for this As soon as Possible

Aathif,

This problem is still present in v2.1.5.

Under all other deployment combinations (iOS debug/release, Android debug/release, and Windows debug) the icons work without issue.

Only present under Window release build.

Also - please note that versions 2.2.5 and 3.0.0 I tried both of these as a workaround within my MAUI app. Both versions break the icons totally. Version 2.1.5 is the only one that works properly. Unless there are missing steps for proper installation on your github homepage for this project.

We have been using your icon set for months but these two problems persist:

  • (IMPORTANT) we cannot build for Windows release mode with the icons, they display as rectangles.
  • We cannot update past v2.1.5; breaks every icon within our XAML code.

Thank you in advance for any help. This problem preventing us from deploying our app.

icons-not-displaying-example.png (view on web)

https://github.com/AathifMahir/MauiIcons/assets/8365271/6c1e402b-99e1-413b-bb2e-59f923234908

I have tested release build on All the Platforms on v3.0.0 everything worked fine except Unpackaged Windows App which had issue on Maui itself

— Reply to this email directly, view it on GitHub

99 (comment)

https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106120084 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AB72JV6ROCXDIVGBNVQS77LZB3Z5BAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGEZDAMBYGQ . You are receiving this because you commented.Message ID: @.***>

You can try upgrading Maui to v8.0.21, whether that fixed the issue. If not you need to convert icons one by one to SVG to solve this issue. As far as now we can't use icon as fonts in Unpackaged until this issue is resolved

— Reply to this email directly, view it on GitHub https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106125463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB72JV4MZ7QX5MBDFGPSNV3ZB35FLAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGEZDKNBWGM . You are receiving this because you commented.Message ID: @.***>

I'm can't certainly say Microsoft left out Unpackaged, But when it comes this issue, this is directly related Win2D Component of Windows App SDK but When it comes Choosing Between Unpackaged vs MSIX, I would say it's based on your Pros and Cons, What Makes Unpackaged Way to do go for you is What Decides whether to Go with MSIX or not

rcanacci commented 4 months ago

Well, it's a legitimate supported option.

It's a much more convenient (less work due to the signing factor with MSIX) way for us to distribute this, as it's an internal company app.

My perspective is that if MS is going to support it, they should support it all the way, from day 1, out of the box. Or, they should have from-Microsoft workarounds that are elegant and work consistently.

From what I am seeing, many developers are struggling with this exact issue.

Our goal is to build to a single .exe - to your knowledge is there another way to do this outside of going the unpackaged route?

Thanks again for your help on this, Aathif. Greatly appreciated.

On Sun, May 12, 2024 at 11:57 AM AathifMahir @.***> wrote:

Aathif,

thank you for the discussion back-and-forth… I tried a few things that you suggested… None of them are working… Based on your Maui experience and some of the other things that I've been reading… Is it fair to say that Microsoft is just not truly supporting the unpackaged building and publishing of a MAUI app?

Should I invest my time pursuing another avenue, like MSIX?

Ron

On Sun, May 12, 2024 at 1:32 AM AathifMahir @.***> wrote:

Yes, I am using Unpackaged.

So, you would suggest a different icon library?

On Sun, May 12, 2024 at 1:04 AM AathifMahir @.***> wrote:

@xyeie https://github.com/xyeie https://github.com/xyeie https://github.com/xyeie You can rollback the version of MauiIcons v2.1.5, I found that new binding feature that introduced in v2.2.5 Causing this Issue in Release Mode, I Already Flagged the Build, Will have a Patch for this As soon as Possible

Aathif,

This problem is still present in v2.1.5.

Under all other deployment combinations (iOS debug/release, Android debug/release, and Windows debug) the icons work without issue.

Only present under Window release build.

Also - please note that versions 2.2.5 and 3.0.0 I tried both of these as a workaround within my MAUI app. Both versions break the icons totally. Version 2.1.5 is the only one that works properly. Unless there are missing steps for proper installation on your github homepage for this project.

We have been using your icon set for months but these two problems persist:

  • (IMPORTANT) we cannot build for Windows release mode with the icons, they display as rectangles.
  • We cannot update past v2.1.5; breaks every icon within our XAML code.

Thank you in advance for any help. This problem preventing us from deploying our app.

icons-not-displaying-example.png (view on web)

https://github.com/AathifMahir/MauiIcons/assets/8365271/6c1e402b-99e1-413b-bb2e-59f923234908

I have tested release build on All the Platforms on v3.0.0 everything worked fine except Unpackaged Windows App which had issue on Maui itself

— Reply to this email directly, view it on GitHub

99 https://github.com/AathifMahir/MauiIcons/issues/99 (comment)

99 (comment)

https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106120084 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AB72JV6ROCXDIVGBNVQS77LZB3Z5BAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGEZDAMBYGQ . You are receiving this because you commented.Message ID: @.***>

You can try upgrading Maui to v8.0.21, whether that fixed the issue. If not you need to convert icons one by one to SVG to solve this issue. As far as now we can't use icon as fonts in Unpackaged until this issue is resolved

— Reply to this email directly, view it on GitHub

99 (comment)

https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106125463 , or unsubscribe

https://github.com/notifications/unsubscribe-auth/AB72JV4MZ7QX5MBDFGPSNV3ZB35FLAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGEZDKNBWGM . You are receiving this because you commented.Message ID: @.***>

I'm can't certainly say Microsoft left out Unpackaged, But when it comes this issue, this is directly related Win2D Component of Windows App SDK but When it comes Choosing Between Unpackaged vs MSIX, I would say it's based on your Pros and Cons, What Makes Unpackaged Way to do go for you is What Decides whether to Go with MSIX or not

— Reply to this email directly, view it on GitHub https://github.com/AathifMahir/MauiIcons/issues/99#issuecomment-2106314245, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB72JV7RQTQC24P5NFSXZL3ZB6NPLAVCNFSM6AAAAABHOOBHAGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGMYTIMRUGU . You are receiving this because you commented.Message ID: @.***>