SPC010703: Do not reference WebApplication Feature in attribute 'VisibilityFeatureDependency'

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

TypeName: DoNotAddDependencyToWebAppFeatureInSiteDefinition
CheckId: SPC010703
Severity: Error
Type: Configuration
Resolution

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>

Links

comments powered by Disqus