I feel like I\'ve fixed this before, but I can\'t remember how.
I have a tasks file that looks like this (CustomTasks.tasks):
This is actually easy to fix. Put your custom build tasks and dependencies in a different folder. Then dependencies are loaded correctly.
For example like so: