Expand Minimize

Declare required attributes in Feature

Required attributes Id and Scope must be declared in Feature.

CheckId SPC012101
TypeName DeclareRequiredAttributesInFeature
Severity CriticalError
Type Feature

The attribute 'Id' of a Feature must be defined. It contains the globally unique identifier (GUID) for the Feature. See sample below:

   Title="Location Services"
   Description="This Feature contains lists and parts that let you link location data to your customer lists."
   Scope="Web" >

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":"SPC012101:DeclareRequiredAttributesInFeature","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.