共用方式為


Dependency feature [Name & GUID] for feature [Name & GUID] is not activated at this scope

 

This is one of these things where you stand between banging your head and pull your hair.

Background:

I have a feature stapler that has few feature to be activated and one of these features is activated with a dependency on another feature.

Feature Stapler:

  • Activation Dependency: Feature1
  • Activation Dependency: Feature2
  • ====> {Feature Dependency: Feature4}
  • ====> {Feature Dependency: Feature5}
  • Activation Dependency: Feature3

Problem:

Once I've deployed the the solution i got the error:

Dependency feature Feature5 {GUID} for feature Feature2 {GUID} is not activated at this scope.

Resolution:

after checking all the features and the structure, i found that when you use feature dependency, the feature should be hidden! so i modified Feature5 to be hidden and that is it! it works fine :)