dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.99k stars 1.72k forks source link

[Windows, 9.0 Preview 6] Fonts are randomly left out the MSIX package #23659

Open janne-hmp opened 1 month ago

janne-hmp commented 1 month ago

Description

When building the app and publishing MSIX package in Visual Studio, all fonts in the Resources/Fonts directory are sometimes randomly left out of the package when using MauiFont. MauiAsset's seem to be copied always successfully. This is the same behavior as for Android, see #23364. The workaround is also the same.

Steps to Reproduce

  1. Rebuild GnollHackM in Visual Studio then publish an MSIX package. Do this many times.
  2. In some MSIX packages there are no fonts from Resources\Fonts directory.

Link to public reproduction project repository

https://github.com/hyvanmielenpelit/GnollHack

Version with bug

9.0.0-preview.6.24327.7

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

The same as for Android, use MauiAsset instead of MauiFont.

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.