Jaa


SharePoint project item schema reference

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Visual Studio uses the SharePoint project item schema to validate the contents of .spdata files. An .spdata file specifies the contents and behavior of a SharePoint project item. For more information about the contents of SharePoint project items, see Create item templates and project templates for SharePoint project items.

The SharePoint project item schema is named ProjectItemModelSchema.xsd and is installed by default in %Program Files (x86)%\Microsoft Visual Studio 11.0\Xml\Schemas.

The root element is the ProjectItem element. The following table describes all of the elements defined by the schema.

Element Description
ExtensionData Represents a collection of custom data items that are associated with the SharePoint project item.
ExtensionDataItem Represents a custom data item that is associated with the SharePoint project item, in key/value format. Both the key and value must be strings.
FeatureProperties Represents a collection of property values that are included with a Feature when it is deployed to SharePoint. After a Feature is deployed, you can access the property values in your code.
FeatureProperty Represents a custom property that is included with a Feature when it is deployed to SharePoint. After a Feature is deployed, you can access the property in your code.
Files Specifies the files to deploy with the SharePoint project item, such as a Feature element file or the output of a project.
ProjectItem Represents a SharePoint project item.
ProjectItemFile Represents a SharePoint file, such as Feature element file, to include with the project item when it is deployed to SharePoint.
ProjectItemFolder Represents a mapped folder.
ProjectOutputFile Represents the output of a project to include with the project item when it is deployed to SharePoint.
SafeControl Represents an ASPX control or Web Part that is designated as secure for any user to access on any ASPX page on the SharePoint site.
SafeControls Represents a collection of ASPX controls and Web Parts that are designated as secure for any user to access on any ASPX page on the SharePoint site.

See also