Expand Minimize

Declare required attributes in SiteDefinition

Required attributes Title and ListDir must be declared in SiteDefinition.

CheckId SPC010701
TypeName DeclareRequiredAttributesInSiteDefinition
Severity Error
Type Project

Add missing attributes Title and ListDir to SiteDefinition.
If attribute Title missing the SiteDefinition could no be displayed correctly in SharePoint.
See sample below:

<Project
   Title="$Resources:onet_TeamWebSite;"
   Revision="2"  
   ListDir="$Resources:core,lists_Folder;"  
   xmlns:ows="Microsoft SharePoint">
   ...
</Project>

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":"SPC010701:DeclareRequiredAttributesInSiteDefinition","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.