Issue with installing a bundle with resource package

Copper Contributor

I created a bundle using packaging layout as described here, and used self-signed certificate to sign the appx and appxbundle. 

In my packaging layout, I have 4 packages (1 main, 1 asset, 2 resource).


Now, when I try to install the generated appxbundle, I see this error (also attached a screenshot below): 

"App installation failed with error message: Merge failure for shared merged PRI file : error 0x80070002 : Cannot register the MySuite.MyApp_1.0.0.0_x64__cw6ywnn9zbvyp package because there was a merge failure with the following file: C:\Program Files\WindowsApps\MySuite.MyApp_1.0.0.0_x64__cw6ywnn9zbvyp\resources.pri (0x80070002)"


If I remove the resource packages from the layout, the error is not seen, so it seems like the error is due to the resource packages.


Version of MakeAppx used: 10.0.17763.132

OS Version: Windows 10 version 1809 (OS Build 17763.316)


Please guide what am I doing wrong?



1 Reply

If you are using resource packages then you need to have the appropriate resources.pri files for your resource packages (and your main package); the error you're seeing is from a problem with your pri files. The packaging layout won't create or validate your resources.pri files, so you should either use Visual Studio to build your initial package first to get your resource.pri files or create them manually with makepri.exe (