How to configured optional packages that references to the MainPackage?
According to the Microsoft document https://docs.microsoft.com/en-au/window ... l-packages Optional packages is referenced as <uap3:MainPackageDependency Name="[MainPackageDependency]"/>
Tried adding dependency in the optional package to reference the main package, instead of <uap3:MainPackageDependency Name="[MainPackageDependency]"/>, the AppManifest.xml actually added the dependency as
<PackageDependency Name="MainPackage" MinVersion="x.0.0.0" Publisher="[digital signature id of the main package]"/>
The AppInstaller throws back a message of "App Installer failed to install package dependencies. Ask the developer for MainPackage package." when trying to install the optional package.