Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Dependencies

Declares other packages that a package depends on to complete its software.

Element hierarchy

<Package>
   └─ <Dependencies>

Syntax

<Package
 xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10">
 ...
 <Dependencies>

 <!-- Child elements -->
 TargetDeviceFamily{1,128}
 PackageDependency{0,129}
 HostRuntimeDependency{0,129}
 PackageDependency{0,129}
 MainPackageDependencyChoice?
 MainPackageDependencyChoice2{0,1000}
 DriverDependency{0,1000}
 OSPackageDependency{0,1000}
 HostRuntimeDependency?

 </Dependencies>
</Package>

Key

? optional (zero or one) {} specific range of occurrences

Attributes

Attribute Description Data type Required Default value
Identifies the device family that your package targets. For more info about device families, see Programming with extension SDKs.
Declares a dependency on another package that is marked as a framework package.
Declares publisher information for the app.
Declares other packages that a package depends on. This dependency can be specified as required for both install time and runtime or just install time but not runtime.
Contains the driver constraint information for a UWP app. If DriverDependency is used, the specified driver must be present for the app to load.
Defines a package dependency for a UWP app.
Defines a dependency on a host app for the current app. For more information, see Create hosted apps.
Description
-
Defines the root element of an app package manifest. The manifest describes the structure and capabilities of the software to the system.
Value
--
http://schemas.microsoft.com/appx/manifest/foundation/windows10

Child elements

Child element Description
TargetDeviceFamily Identifies the device family that your package targets. For more info about device families, see Programming with extension SDKs.
PackageDependency Declares a dependency on another package that is marked as a framework package.
uap13:HostRuntimeDependency Declares publisher information for the app.
uap17:PackageDependency Declares other packages that a package depends on. This dependency can be specified as required for both install time and runtime or just install time but not runtime.
uap5:DriverDependency Contains the driver constraint information for a UWP app. If DriverDependency is used, the specified driver must be present for the app to load.
uap7:OSPackageDependency Defines a package dependency for a UWP app.
uap10:HostRuntimeDependency Defines a dependency on a host app for the current app. For more information, see Create hosted apps.

Parent elements

Parent element Description
Package Defines the root element of an app package manifest. The manifest describes the structure and capabilities of the software to the system.

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/foundation/windows10
Minimum OS Version

Remarks

Dependencies must be explicitly defined. If a dependency cannot be resolved, deployment of the package fails. By default, a package cannot take a dependency on another package if the dependency package is not declared to be a framework or resource package. Set Framework to true to declare a framework package and ResourcePackage to true to declare a resource package.

The total count of uap7:OSPackageDependency and uap10:HostRuntimeDependency elements must not exceed 128.

Examples

<Dependencies>
 <PackageDependency Name="Microsoft.WinJS.1.0"
 Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
 MinVersion="1.0.0.0"/> 
</Dependencies>

Feedback

Was this page helpful?

Additional resources