Skip to content

Conversation

@qiutongMS
Copy link
Collaborator

@qiutongMS qiutongMS commented Oct 14, 2025

Summary

Fixes regression introduced in WinAppSDK 1.8 where XAML island applications broke when resources.pri file doesn't exist.

Problem

  • Issue: #33
  • Regression: WinAppSDK 1.8 added file existence checking that broke XAML islands
  • Impact: Microsoft.Windows.ApplicationModel.Resources.ResourceManager fails with ERROR_FILE_NOT_FOUND
  • Scenario: Win32 + WinUI3 XAML island applications without PRI files
  • Solution

  • Approach: Conservative fix - restore exact WinApp
  • [Content truncated - see issue #33 for full details]

…XAML islands

Remove CheckFile() call from GetDefaultPriFileForCurentModule() to fix regression
where XAML island applications broke when resources.pri doesn't exist.

This restores the exact WinAppSDK 1.7 behavior that allowed ResourceManager to
work in XAML island scenarios even without PRI files present.

- Fixes: GitHub Issue #33
- Regression: Introduced in WinAppSDK 1.8
- Impact: XAML islands (Win32 + WinUI3) now work again
- Risk: Very low - reverts to proven 1.7 behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants