Expand Minimize

Declare attribute SharePointProductVersion='15.0' in Solution

The attribute 'SharePointProductVersion' with value '15.0' must be declared if files in 15 hive should be loaded. If not declared SharePoint assumes version '14.0'.

CheckId SPC150102
TypeName DeclareSharePointVersionInSolution
Severity CriticalWarning
Type Solution

Add attribute 'SharePointProductVersion' with value '15.0' to manifest.xml. See sample below (MSDN):

<Solution SolutionId="4AFC1350-F354-4439-B941-51377E845F2B" SharePointProductVersion="15.0" xmlns="http://schemas.microsoft.com/sharepoint/">

To suppress this violation in XML SharePoint code add the following comment right before the XML tag which causes the rule violation. Learn more about SuppressMessage here.

<!-- "SuppressMessage":{"rule":"SPC150102:DeclareSharePointVersionInSolution","justification":"Provide reason for suppression here"} -->
Disclaimer: The views and opinions expressed in this documentation and in SPCAF do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. SPCAF and RENCORE are registered trademarks of Rencore. All other trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners.