Add `appLicensing` capability to Appx manifest by SteveL-MSFT · Pull Request #27412 · PowerShell/PowerShell
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
- PR has a meaningful title
- Use the present tense and imperative mood when describing your changes
- Summarized changes
- Make sure all
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header - This PR is ready to merge. If this PR is a work in progress, please open this as a Draft Pull Request and mark it as Ready to Review when it is ready to merge.
- Breaking changes
- None
- OR
- Experimental feature(s) needed
- Experimental feature name(s):
- User-facing changes
- Not Applicable
- OR
- Documentation needed
- Issue filed:
- Testing - New and feature
- N/A or can only be tested interactively
- OR
- Make sure you've added a new test if existing tests do not effectively test the code changed
Copilot AI review requested due to automatic review settings
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" />toassets/AppxManifest.xmlcapabilities list.
@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 The doc about
appLicensingsays: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.