I'm working in a Helix solution and have noticed things like:

<configuration name="Feature.MyModuleName"

To me, the dependencies attribute seems like all you should need.

Is it really necessary patch:after as well as the dependencies attribute?

1 Answer 1


Yes. At least potentially.

patch:after happens when Sitecore.Configuration.Factory reads and parses and constructs the object graph that the configuration represents. So at Initialize time of the application. There could be Foundation level configuration entries (like default serializer and so on) that need to be set up, before your Feature level configuration is read and parsed.

The dependencies attribute affects Unicorn sync order at runtime. So much much later in process/lifecycle of your application.

  • Cool, thanks for your answer. So in most cases, we should not need patch:before; only when there is something which changes the behaviour of serialization/unicorn. Apr 29, 2019 at 14:49
  • 1
    Yes. Which in a typical Helix type setup would be something like Foundation.Serialization.
    – Mark Cassidy
    Apr 29, 2019 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.