<?xml version="1.0" encoding="utf-8"?>
<Rule
  Name="AppxManifest"
  DisplayName="App Manifest Properties"
  PageTemplate="generic"
  Description="App Manifest Properties"
  xmlns="http://schemas.microsoft.com/build/2009/properties">

    <Rule.Categories>
        <Category Name="General" DisplayName="General"/>
    </Rule.Categories>

    <Rule.DataSource>
        <DataSource Persistence="ProjectFile" HasConfigurationCondition="false" ItemType="AppxManifest" />
    </Rule.DataSource>

    <EnumProperty
    Name="{}{ItemType}"
    DisplayName="Package Action"
    Category="General"
    F1Keyword="wapproj.project.property.packageaction"
    Description="Specifies the action taken on this file when an app package is produced.">
        <EnumValue Name="None" DisplayName="None" />
        <EnumValue Name="Content" DisplayName="Content" />
        <EnumValue Name="AppxManifest" DisplayName="App Manifest" />
        <EnumValue Name="PackageLayout" DisplayName="Package Layout" />
        <EnumValue Name="PRIResource" DisplayName="Resource" />

        <EnumProperty.DataSource>
            <DataSource Persistence="ProjectFile" Label="Configuration" SourceType="Item" ItemType="AppxManifest" HasConfigurationCondition="false" />
        </EnumProperty.DataSource>
    </EnumProperty>

    <EnumProperty
    Name="CopyToOutputDirectory"
    DisplayName="Copy to Output Directory"
    Category="General"
    F1Keyword="wapproj.project.property.copytooutputdirectory"
    Description="Specifies if the file should be copied to the output folder.">
        <EnumValue Name="Never" DisplayName="Do not copy" />
        <EnumValue Name="Always" DisplayName="Copy always" />
        <EnumValue Name="PreserveNewest" DisplayName="Copy if newer" />
    </EnumProperty>

    <StringProperty
    Name="Identity"
    Visible="false"
    ReadOnly="true"
    Category="General"
    Description="The item specified in the Include attribute.">
        <StringProperty.DataSource>
            <DataSource Persistence="Intrinsic" ItemType="AppxManifest" PersistedName="Identity" />
        </StringProperty.DataSource>
    </StringProperty>

    <StringProperty
    Name="FullPath"
    DisplayName="Full Path"
    ReadOnly="true"
    Category="General"
    F1Keyword="wapproj.project.property.fullpath"
    Description="Location of the file.">
        <StringProperty.DataSource>
            <DataSource Persistence="Intrinsic" ItemType="AppxManifest" PersistedName="FullPath" />
        </StringProperty.DataSource>
    </StringProperty>

    <StringProperty
    Name="FileNameAndExtension"
    DisplayName="File Name"
    ReadOnly="true"
    Category="General"
    F1Keyword="wapproj.project.property.filename"
    Description="Name of the file or folder.">
        <StringProperty.DataSource>
            <DataSource Persistence="Intrinsic" ItemType="AppxManifest" PersistedName="FileNameAndExtension" />
        </StringProperty.DataSource>
    </StringProperty>

    <BoolProperty Name="Visible" Visible="false" />
    <StringProperty Name="DependentUpon" Visible="false" />
    <StringProperty Name="Link" Visible="false" />
    <EnumProperty Name="SubType" Visible="false">
        <EnumValue Name="Designer" />
    </EnumProperty>
</Rule>