<?xml version="1.0" encoding="utf-8"?>
<!--Copyright, Microsoft Corporation, All rights reserved.-->
    
<!-- Rule definition for the Content project item type -->
<Rule
  Name="Content"
  DisplayName="File Properties"
  PageTemplate="generic"
  Description="File Properties"
  xmlns="http://schemas.microsoft.com/build/2009/properties">

    <Rule.Categories>
        <Category Name="Misc" DisplayName="Misc" />
        <Category Name="Advanced" DisplayName="Advanced" />
    </Rule.Categories>

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

    <EnumProperty Name="{}{ItemType}" DisplayName="Build Action" Category="Advanced" Description="How the file relates to the build and deployment processes.">
        <EnumValue Name="None" DisplayName="None" />
        <EnumValue Name="Content" DisplayName="Content" />
        <EnumProperty.DataSource>
            <DataSource Persistence="ProjectFile" Label="Configuration" SourceType="Item" ItemType="Content" HasConfigurationCondition="false" />
        </EnumProperty.DataSource>
    </EnumProperty>

    <EnumProperty Name="CopyToOutputDirectory" DisplayName="Copy to Output Directory" Category="Advanced" 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="FullPath" DisplayName="Full Path" ReadOnly="true" Category="Misc" Description="Location of the file.">
        <StringProperty.DataSource>
            <DataSource Persistence="Intrinsic" ItemType="Content" PersistedName="FullPath" />
        </StringProperty.DataSource>
    </StringProperty>

    <StringProperty Name="FileNameAndExtension" DisplayName="File Name" ReadOnly="true" Category="Misc" Description="Name of the file.">
        <StringProperty.DataSource>
            <DataSource Persistence="Intrinsic" ItemType="Content" PersistedName="FileNameAndExtension" />
        </StringProperty.DataSource>
    </StringProperty>

    <BoolProperty Name="Visible" Visible="false" />
    <StringProperty Name="DependentUpon" Visible="false" />
    <StringProperty Name="Link" Visible="false" />
</Rule>
