Expand Minimize

Do not reference WebApplication Feature in attribute 'VisibilityFeatureDependency'

The attribute 'VisibilityFeatureDependency' is not supported for Features with Web application scope.

CheckId SPC010703
TypeName DoNotAddDependencyToWebAppFeatureInSiteDefinition
Severity Error
Type Configuration

The attribute 'VisibilityFeatureDependency' can be used to hide the site template depending on activated features. This attribute is not supported for Features with Web application scope.

<Templates xmlns:ows="Microsoft.SharePoint">
  <Template Name="RESEARCH" ID="10001">
    <Configuration ID="0" Title="Research Collaboration site"
      Hidden="FALSE" ImageUrl="_layouts/images/stsprev.jpg"  
      Description="This definition creates a site for the Research  
      team to create, organize, and share general information."  
      DisplayCategory="Research & Development">
      VisibilityFeatureDependency="DD903064-C9D8-4718-B4E7-8AB9BD039FFF"
    </Configuration>
    ...
  </Template>
</Templates>

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":"SPC010703:DoNotAddDependencyToWebAppFeatureInSiteDefinition","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.