SPC017413: Do not add cross-scope ActivationDependency to a hidden Feature |
A Feature cannot have an cross-scope ActivationDependency to a hidden Feature. For example, a Web site-scoped feature cannot be dependent on a site collection–scoped Feature that is not visible in the user interface.
| CheckId | SPC017413 |
|---|---|
| TypeName | DoNotAddCrossScopeActivationDependencyToHiddenFeature |
| Severity | CriticalError |
| Type | FeatureActivationDependency |
Remove the ActivationDependency or make the target Feature visible. MSDN: 'Feature activation dependencies are not supported across scopes if the Feature that is depended upon is not visible. In other words, a Web site-scoped feature cannot be dependent on a site collection–scoped Feature that is not visible in the user interface.'
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.
