AppPrerequisite element (AppPrerequisiteCollection 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. 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 add-in is blocked.
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.
<AppPrerequisite Type="type_name " ID="feature/capability_guid_or_autohosted_component_type" MinimumVersion="n.n.n.n" />
Element information
Element type: AppPrerequisite
Namespace: http://schemas.microsoft.com/sharepoint/2012/app/manifest
Schema file: appmanifest.xsd
Definition
<xs:element name="AppPrerequisite" type="AppPrerequisite" maxOccurs="500"></xs:element>
Elements and attributes
If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.
Parent elements
Element |
Type |
Description |
---|---|---|
A list of prerequisites that a SharePoint Add-in depends on. |
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. |
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.
|
||||||||||||||||||||||||||||
MinimumVersion |
optional |
The minimum version of the feature or capability that the SharePoint Add-in depends on, for example 15.0.0.0. |
Values of the VersionDefinition type. |
|||||||||||||||||||||||||||||
**Type** |
required |
The type of add-in prerequisite. |
Values of the AppPrerequisiteTypeDefinition type, either Feature or Capability. (Autoprovisioning is not a supported value at this time.) |