Note the restricted capability required to use the PackageManager API#481
Open
RDMacLachlan wants to merge 1 commit into
Open
Note the restricted capability required to use the PackageManager API#481RDMacLachlan wants to merge 1 commit into
RDMacLachlan wants to merge 1 commit into
Conversation
The PackageManager (Windows.Management.Deployment) references in these conceptual topics didn't mention that the calling app must declare the appropriate restricted capability, or link to the capability declarations page. Add capability notes that distinguish install from query: - msix-server-2019.md: installing via the Package Manager API requires the `packageManagement` restricted capability - app-installer/app-installer-documentation.md: the AddPackageByAppInstaller- FileAsync / RequestAddPackageByAppInstallerFileAsync methods require the `packageManagement` restricted capability - package/package-folding.md: querying packages your app didn't author with the PackageManager class requires the `packageQuery` restricted capability Each note links to the restricted capability declarations reference and the package manifest, and clarifies that managing/querying your own app's packages doesn't require the capability. Bump ms.date on the edited files. Resolves AB#25736442 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
Learn Build status updates of commit b6d2729: ✅ Validation status: passed
For more details, please refer to the build report. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves the doc bug asking that the PackageManager API references note the appropriate restricted capability and link to the capability declarations page (AB#25736442).
What changed
The literal API reference page (
/uwp/api/...PackageManager) lives in the winrt-api repo, but several conceptual topics here reference the PackageManager API for install/query without noting the required restricted capability. This adds notes that follow the same pattern already used innon-store-developer-updates.md, distinguishing install from query (per the reporter's own guidance on the bug):packageManagementrestricted capabilityAddPackageByAppInstallerFileAsync/RequestAddPackageByAppInstallerFileAsyncmethods require thepackageManagementrestricted capabilitypackageQueryrestricted capabilityEach note links to the restricted capability declarations reference and the package manifest, and clarifies that managing/querying your own app's packages doesn't require the capability.
ms.datebumped on the edited files.