Skip to content

Commit 9d08d84

Browse files
authored
making things clearer, hopefully (#3690)
1 parent f803b65 commit 9d08d84

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hub/apps/desktop/modernize/framework-packages/use-the-dynamic-dependency-api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
title: Use the dynamic dependency API to reference MSIX packages at run time
33
description: Describes how to use the *dynamic dependency API* to dynamically take a dependency on different MSIX packages (other than the Windows App SDK framework package) in an unpackaged app at run time.
44
ms.topic: article
5-
ms.date: 03/01/2023
5+
ms.date: 07/26/2023
66
ms.localizationpriority: medium
77
---
88

99
# Use the dynamic dependency API to reference MSIX packages at run time
1010

11-
The forms that MSIX packages can take includes *framework*, *resource*, *optional*, and *main* packages. The *dynamic dependency API* enables unpackaged apps to reference and to use framework packages such as [WinUI 2](../../../winui/winui2/index.md) and the DirectX Runtime. For more info about framework package dependencies, see [MSIX framework packages and dynamic dependencies](framework-packages-overview.md).
11+
The forms that MSIX packages can take includes *framework*, *resource*, *optional*, and *main* packages. The *dynamic dependency API* enables unpackaged apps to reference and to use *framework* packages such as [WinUI 2](../../../winui/winui2/index.md) and the DirectX Runtime. For more info about framework package dependencies, see [MSIX framework packages and dynamic dependencies](framework-packages-overview.md).
1212

13-
Also&mdash;as of Windows 11, version 22H2 (10.0; Build 22621)&mdash;you can reference and use main packages as well. The main package must correctly configure its app package manifest source file (the `Package.appxmanifest` file in Visual Studio). You need to set `<uap15:DependencyTarget>true</>` (see [uap15:DependencyTarget](/uwp/schemas/appxpackage/uapmanifestschema/element-uap15-dependencytarget)).
13+
A dynamic dependency can always target a framework package. But as of Windows 11, version 22H2 (10.0; Build 22621), you can reference and use *main* packages as well. The main package must have correctly configured its app package manifest source file (the `Package.appxmanifest` file in Visual Studio). Specifically, the main package (the target, not the caller) needs to set `<uap15:DependencyTarget>true</>` (see [uap15:DependencyTarget](/uwp/schemas/appxpackage/uapmanifestschema/element-uap15-dependencytarget)). So the purpose of `<uap15::DependencyTarget>` is to enable a dynamic dependency to target a *main* package. In other words, the main package has to opt in to allow itself to be used as a dynamic dependency (whereas framework packages always implicitly allow that).
1414

1515
Specifically, the dynamic dependency API provides ways to manage the *install-time references* and *run-time references* for MSIX packages. For more info, see [Servicing model for framework packages](framework-packages-overview.md#servicing-model-for-framework-packages).
1616

0 commit comments

Comments
 (0)