I use templates a lot but sometimes ad-hoc tasks need to be added into a templated project. When this happens, I add dependencies to the task but it gives me options for tasks with the same name outside of the project, sometimes not giving me the option for the current project’s tasks due to the limited view of options.
I recommend that when adding dependencies, you are able to select the tasks you want to have the dependencies for within the same project.