Execution order of fabrics
Fabrics are executed in the following order:
Project fabrics. Project fabrics are ordered by the following criteria:
- Distance of the source file from the root directory: fabrics closer to the root directory are processed first.
- Fabric namespace.
- Fabric type name.
Transitive project fabrics are ordered based on the following criteria:
- Depth in the dependency graph: dependencies with lower depth (i.e. "nearer" to the main project) are processed first.
Assembly name (alphabetical order).
Transitive dependencies are intentionally executed after compilation dependencies, so compilation dependencies have a chance to configure transitive dependencies before they run.
At this point, the project configuration is frozen (by calling MakeReadOnly() on all configuration objects). Therefore, the execution order of the following fabrics should not matter.
Type fabrics. Note that type fabrics can provide advice. This advice is executed before any aspect.
- Aspects. For the execution order of explicitly ordered and unordered aspects, see Ordering aspects.