Skip to content

Unpackaged C++ app using xaml islands - xaml/xbf resources embeded in pri file cannot be loaded #10340

@PetrMinar

Description

@PetrMinar

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions