Feature.xml ファイル

Feature.xml ファイルには Feature 要素を記述します。これはフィーチャーを定義するもので、アセンブリやファイルの場所、依存関係、フィーチャーが働くために必要なプロパティを指定します。

Feature

  ActivationDependencies

    ActivationDependency

  ElementManifests

    ElementFile

    ElementManifest

  Properties

    Property

Feature.xml ファイルの作成場所と実装方法の詳細については、「フィーチャーを操作する」を参照してください。

次の例では、Feature.xml ファイルに、アクティブ化の依存関係、特殊フィールド、要素定義ファイルの相対パスを指定しています。

<Feature 
  Id="11111111-1111-1111-1111-11111111111" 
  Title="Location Services"
  Description="This Feature contains lists and parts that let you link location data to your customer lists."
  Scope="Web">
  <ActivationDependencies>
    <ActivationDependency
      FeatureId="11111111-1111-1111-1111-111111111111" />
  </ActivationDependencies>
  <ElementManifests>
    <ElementManifest 
      Location="Location\LocationPart.xml"/>
    <ElementManifest 
      Location="CustomerLocation\CustomerLocationList.xml"/>
    <ElementFile 
      Location="test.aspx"/>
  </ElementManifests>
  <Properties>
    <Property
      Key="Color"
      Value="Blue"/>
    <Property
      Key="Shape"
      Value="Triangle"/>
  </Properties> 
</Feature>

See Also

タスク

[方法] 単純なフィーチャーを作成する

概念

フィーチャーを操作する