AppPrerequisite complexType
(SharePoint Add-in Manifest)
Applies to: SharePoint Add-ins | SharePoint Foundation 2013 | SharePoint Server 2013
Identifies a SharePoint Feature or capability that the add-in depends on, or an autohosted component that is included in the app. The SharePoint Add-ins installation infrastructure checks to see if the Feature or capability is present and activated. If it is not, installation of the app is blocked. If the element identifies an autohosted component, the infrastructure deploys the component.
Note
The string app
appears as part of or all of some element, attribute, and file names because SharePoint Add-ins were originally called "apps for SharePoint." To ensure backward compatibility, the schemas have not been changed.
Type information
Namespace: http://schemas.microsoft.com/sharepoint/2012/app/manifest
Schema file: appmanifest.xsd
Extension base: None
Definition
<xs:complexType name="AppPrerequisite">
<xs:attribute name="Type" type="AppPrerequisiteTypeDefinition" use="required" />
<xs:attribute name="ID" type="xs:string" use="required" />
<xs:attribute name="MinimumVersion" type="VersionDefinition" use="optional" />
</xs:complexType>
Elements and attributes
If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.
Child elements
None.
Attributes
Attribute |
Type |
Required |
Description |
Possible values |
||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID |
xs:string |
required |
The ID that identifies a Feature or capability that the SharePoint Add-in depends on, or a type of autohosted component included in the add-in. |
Varies depending on the value of the **Type** attribute. If **Type** is **Feature**, the **ID** is the bracketed, hyphenated GUID of the Feature; for example {151D22D9-95A8-4904-A0A3-22E4DB85D1E0}. If **Type** is **Capability**, the **ID** is one of the GUIDs in the following table. The hyphens are required.
If **Type** is **AutoProvisioning**, the possible **ID** values are:
|
||||||||||||||||||||||||||||
MinimumVersion |
optional |
The minimum version of the feature or capability the SharePoint Add-in depends on; for example 15.0.0.0. |
Values of the VersionDefinition type. |
|||||||||||||||||||||||||||||
**Type** |
required |
The type of the add-in prerequisite. |
Values of the AppPrerequisiteTypeDefinition type; either Feature, Autoprovisioning, or Capability. |
|||||||||||||||||||||||||||||
ID |
xs:string |
required |
The ID that identifies a feature, service, or ability that the SharePoint Add-in depends on. |
Values of the xs:string type. |
||||||||||||||||||||||||||||
MinimumVersion |
optional |
The minimum version of the feature or service the SharePoint Add-in depends on. |
Values of the VersionDefinition type. |
|||||||||||||||||||||||||||||
**Type** |
required |
The type of the add-in prerequisite. |
Values of the AppPrerequisiteTypeDefinition type. |