-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Describe the bug
Depending on calling context, with WinAppSDK version 1.7, this function used to return "resources.pri" from the current exe path even if that file doesn't exist. Now the function checks for existence and returns ERROR_FILE_NOT_FOUND (https://github.com/haonanttt/WindowsAppSDK/blob/main/dev/MRTCore/mrt/Core/src/MRM.cpp#L1085) (which seems to contradict the function's documentation BTW).
So this now can break Microsoft.Windows.ApplicationModel.Resources's ResourceManager https://github.com/haonanttt/WindowsAppSDK/blob/main/dev/MRTCore/mrt/Microsoft.Windows.ApplicationModel.Resources/src/ResourceManager.cpp#L18 in the case this file doesn't exist (which again contradicts ResourceManager 's code comment)
Steps to reproduce the bug
It's in a XAML island (Win32 desktop app hosts .NET + WinUI3 class library) context. There's a full repro project here: https://github.com/smourier/Win32ShowsWinUI3
Uncomment this line to reproduce: https://github.com/smourier/Win32ShowsWinUI3/blob/main/WinUI3ClassLibrary/SampleWindow.xaml.cs#L43
Expected behavior
This should work as before
Maybe there's a workaround
Screenshots
No response
NuGet package version
Windows App SDK 1.8.0: 1.8.250907003
Packaging type
Unpackaged
Windows version
Windows 11 version 24H2 (26100, June 2025 Update)
IDE
Visual Studio 2022
Additional context
No response