If a task or container is excluded from execution, any dependencies or chained properties associated with the task will also be excluded from execution.
Excluding a task from execution also excludes any dependencies and/or chained properties associated with it. For example, if a project contains three tasks, A, B, and C, with dependencies as follows:
A -> B -> C
Excluding task B will also remove the dependency that task C has on task B. At this point, task C will have no dependency on task A and thus task A and C can execute in any order.
This behavior is by design. In the example above, if task C must execute after task A, even when task B is excluded, consider adding a dependency on A from C.