How do I get the reference directory of projects in TeamCity?

I am using TeamCity as a build server and have a little trouble setting up projects and their dependencies.

Ultimately I want the project dependency checkout directory to customize certain build steps. To do this, I have a variable

for the design directory of the project itself.

However, I didn't find something like %dep.<dependencyID>


Is there a way to get the dependency reference directory?


source to share

2 answers

You can add a parameter (say checkoutDir

) to the first line, which is set to% You can then get this value in the dependent assembly (either by snapshot or artifact dependency).



I am using this myself and I can access my Checkout build dependent directory with ...



I believe this will only work with the snapshot dependency though



All Articles