Expand Minimize

Deploy missing ElementManifest or ElementFile in Feature (AppWeb)

If ElementManifests or ElementFile are listed in the feature.xml these files must be deployed within the solution package.

CheckId SPC062152
TypeName DeployMissingElementFileInAppWebFeature
Severity CriticalWarning
Type Feature

Check the WSP solution file and the feature.xml of the Feature and ensure that the ElementManifest or ElementFile is deployed in the WSP solution package. See sample below:

<?xml version="1.0" encoding="utf-8" ?>
<Feature Title="Feature with missing files">
  <ElementManifests>
    
    <ElementManifest Location="Elements.xml" />
    ...  
    
    <ElementFile Location="WebTemplate\ONET.XML" />
    ...
  </ElementManifests>
</Feature>

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":"SPC062152:DeployMissingElementFileInAppWebFeature","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.