Skip to content

Add appLicensing capability to Appx manifest#27412

Merged
daxian-dbw merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:applicense
May 13, 2026
Merged

Add appLicensing capability to Appx manifest#27412
daxian-dbw merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:applicense

Conversation

@SteveL-MSFT
Copy link
Copy Markdown
Member

@SteveL-MSFT SteveL-MSFT commented May 11, 2026

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
@SteveL-MSFT SteveL-MSFT requested a review from a team as a code owner May 11, 2026 16:21
@SteveL-MSFT SteveL-MSFT added the CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log label May 11, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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
Copy link
Copy Markdown
Member

@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
Copy link
Copy Markdown
Member Author

SteveL-MSFT commented May 13, 2026

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.4.x-Migrated Backport-7.5.x-Approved Backport-7.6.x-Done CL-BuildPackaging Indicates that a PR should be marked as a build or packaging change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants