uap3:MainPackageDependency (Windows 10)

Specifies the main app package to which this supplemental package applies.

Element hierarchy

<Package>
<Dependencies>
<uap3:MainPackageDependency>

Syntax

<uap3:MainPackageDependency Name = A string between 3 and 50 characters in
                                   length that consists of alpha-numeric, 
                                   period, and dash characters. >
</uap3:MainPackageDependency>

Attributes and Elements

Attributes

Attribute Description Data type Required Default value
Name The name as it appears in the Name attribute of the Identity element of the dependency package. A string between 3 and 50 characters in length that consists of alpha-numeric, period, and dash characters. Yes

 

Child Elements

None.

Parent Elements

Parent Element Description
Dependencies Declares other packages that a package depends on to complete its software.

 

Examples

<Package ...
         xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"  
         IgnorableNamespaces="... uap3">
    <Dependencies>  
        <TargetDeviceFamily Name="Windows.Universal" MinVersion="11.0.0.0" 
                            MaxVersionTested="12.0.0.0"/>  
        <uap3:MainPackageDependency Name="MyApp.Main"/>  
    </Dependencies>  
</Package>

Requirements

Namespace http://schemas.microsoft.com/appx/manifest/uap/windows10/3