Copy-MsixZeroPortalPackageEntitlement
Copies a package's entitlements onto its dependencies and publishes them.
Syntax
Copy-MsixZeroPortalPackageEntitlement -Id <int> [-KeepDependenciesDisabled]
Beschreibung
An MSIX application only runs if the frameworks and runtimes it declares are both entitled to the same audience AND published - an entitled main package with an unpublished framework fails at launch on the client, far away from the portal. This resolves the manifest dependencies against the catalog (same name and architecture, at least the declared minimum version, newest wins), copies every entitlement of the main package onto them and publishes them.
Additive only: entitlements already present on a dependency stay, and entitlements that exist ONLY on a dependency are never removed.
Dependencies that are not in the catalog are reported in Unresolved - import them first, then run this again.
Parameter
-Id<int>The main package whose entitlements are the source.
-KeepDependenciesDisabled<switch>Copy the entitlements but do not publish the dependencies.
Beispiele
Copy-MsixZeroPortalPackageEntitlement -Id 42
Get-MsixZeroPortalPackage -Name 'Chrome*' | Copy-MsixZeroPortalPackageEntitlement