◐ Shell
clean mode source ↗

Add `appLicensing` capability to Appx manifest by SteveL-MSFT · Pull Request #27412 · PowerShell/PowerShell

@SteveL-MSFT

PR Summary

Add the appLicensing cap to Appx manifest which declares a license (from point of view of the Store) is not required. This is a restricted cap, but PowerShell 7 can use it.

PR Context

This fixes a potential "Error acquiring license from Store" error and also speeds up startup as it doesn't try to acquire a Store license.

PR Checklist

Copilot AI review requested due to automatic review settings

May 11, 2026 16:21

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the restricted appLicensing capability to the MSIX/AppX manifest so PowerShell’s packaged app can skip Microsoft Store license acquisition (avoiding “Error acquiring license from Store” and improving startup latency).

Changes:

  • Added <rescap:Capability Name="appLicensing" /> to assets/AppxManifest.xml capabilities list.

@daxian-dbw

@SteveL-MSFT The doc about appLicensing says:

The appLicensing restricted capability allows apps to run without the need of a license. You cannot submit your app to the store if you declare this capability in your manifest.

Have we already got the exception to use this capability without affecting submitting PowerShell app to MS Store?

@SteveL-MSFT

@SteveL-MSFT The doc about appLicensing says:

The appLicensing restricted capability allows apps to run without the need of a license. You cannot submit your app to the store if you declare this capability in your manifest.

Have we already got the exception to use this capability without affecting submitting PowerShell app to MS Store?

Microsoft 1st party automatically gets exception. Internal partner requested we add this.

daxian-dbw

JustinGrote pushed a commit to JustinGrote/PowerShell that referenced this pull request

Jun 2, 2026