microsoft / fluentui-blazor

Microsoft Fluent UI Blazor components library. For use with ASP.NET Core Blazor applications
https://www.fluentui-blazor.net
MIT License
3.78k stars 363 forks source link

fix: Fluent Icons makes app unable to build in Maui Blazor Android #509

Closed guillaume-brouillon closed 1 year ago

guillaume-brouillon commented 1 year ago

πŸ› Bug Report

When making the changes to csproj requested here the MAUI .NET does not deploy on Android anymore with the error message "cannot open file" image Everything is working fine when deploying the app to windows.

πŸ’» Repro or Code Sample

Create a MAUI .NET App. Initialize Fluent UI as explained here add the following to the csproj :

`

true
    <FluentIconSizes>10,12,16,20,24,28,32,48</FluentIconSizes>
    <FluentIconVariants>Filled,Regular</FluentIconVariants>
    <PublishFluentEmojiAssets>true</PublishFluentEmojiAssets>
    <FluentEmojiGroups>Activities,Animals_Nature,Flags,Food_Drink,Objects,People_Body,Smileys_Emotion,Symbols,Travel_Places</FluentEmojiGroups>
    <FluentEmojiStyles>Color,Flat,HighContrast</FluentEmojiStyles>`

Deploy to android and see app not launching.

πŸ€” Expected Behavior

The app should launch as it does in windows.

😯 Current Behavior

Build error : image

πŸ’ Possible Solution

πŸ”¦ Context

🌍 Your Environment

vnbaaij commented 1 year ago

I'm guessing this is caused by the emoji and NOT by the icons. Can you verify that the file causing the issue is called 'piΓ±ata' or something like that?

guillaume-brouillon commented 1 year ago

Indeed removing the emojis fixed the issue !