Prasad Bolla's SharePoint Blog

Click Here to go through the Interesting posts within my Blog.

Click Here to go through the new posts in my blog.

Monday, November 28, 2011

Feature.xml Files

Feature.xml Files

Updated: May 2010

In a Feature.xml file, the Feature element defines a Feature and specifies the location of assemblies, files, dependencies, or properties that support the Feature.

Feature

ActivationDependencies

ActivationDependency

ElementManifests

ElementFile

ElementManifest

Properties

Property

UpgradeActions Element (Feature)

AddContentTypeField Element (Feature)

ApplyElementManifests Element (Feature)

ElementFile Element (Feature)

ElementManifest Element (Feature)

CustomUpgradeAction Element (Feature)

Parameters Element (Feature)

Parameter Element (Feature)

MapFile Element (Feature)

VersionRange Element (Feature)

AddContentTypeField Element (Feature)

ApplyElementManifests Element (Feature)

CustomUpgradeAction Element (Feature)

MapFile Element (Feature)

For information about where to create and how to implement Feature.xml files, see Using Features. For information about how to upgrade a Feature, see Upgrading Features.

Example

The following example shows how to use a Feature.xml file to specify activation dependencies, special fields, and relative paths to element definition files.

Copy

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">

FeatureId="11111111-1111-1111-1111-111111111111" />

Location="Location\LocationPart.xml"/>

Location="CustomerLocation\CustomerLocationList.xml"/>

Location="test.aspx"/>

Key="Color"

Value="Blue"/>

Key="Shape"

Value="Triangle"/>

See Also

Concepts

Using Features

Change History Date

Description

Reason

May 2010

Initial publication

No comments:

Post a Comment