Skip to content

Prune unused WinUI locale resources#4985

Merged
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
mamoreau-devolutions-analyze-package-size
Jun 23, 2026
Merged

Prune unused WinUI locale resources#4985
Gabriel Dufresne (GabrielDuf) merged 1 commit into
mainfrom
mamoreau-devolutions-analyze-package-size

Conversation

@mamoreau-devolutions

Copy link
Copy Markdown
Contributor

Summary

  • Remove non-en-us WinUI XAML framework .mui satellite resources from the publish file list
  • Keep the en-us neutral fallback files
  • Leave self-contained deployment and ReadyToRun unchanged

Validation

  • Reviewed the initial GLM 5.2 implementation and found it did not affect the release zip path
  • Updated the MSBuild target to prune ResolvedFileToPublish after ComputeFilesToPublish and before CopyFilesToPublishDirectory
  • Ran Release x64 publish with RuntimeIdentifier=win-x64; publish output contains only:
    • en-us/Microsoft.ui.xaml.dll.mui
    • en-us/Microsoft.UI.Xaml.Phone.dll.mui
  • Recreated the release zip staging path; zip contains only those 2 .mui files
  • Integrity tree refresh succeeded for the slimmed unigetui_bin output

Size impact

  • Removes 170 .mui files (~3.37 MB uncompressed)
  • Release zip measured at 88.75 MB after pruning

Exclude non-en-us WinUI XAML .mui satellite resources from the publish file list so release packages keep only the neutral fallback files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit bfabb8a into main Jun 23, 2026
3 checks passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the mamoreau-devolutions-analyze-package-size branch June 23, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants