When I build Release configuration for my sample application in this repository, I get pri file with embeded xbf resources in it as well as standalone xbf/xaml files. In theory the application should run without xbf/xaml files and only use data from pri file. But that is not the case - when I delete both xbf and xaml files, the application encounters 0x802b000a error.
Digging deep into the WindowsAppSDK code I think the problems is somewhere inside ModernResourceProvider::Create where ProbeForFrameworkPackageResourcesPri function cannot find application package (call to GetCurrentPackageInfo returns APPMODEL_ERROR_NO_PACKAGE). This leads to resource manager that does not use pri file. At least I think so...
Is there anything I can do to force application to use pri file? Should I call manually LoadPriFiles from resource manager?