copying to teamcity's out directory before running unit tests
So my situation is that I finally finished configuring TeamCity for CI. I got it to run my unit tests with some friendly help on SO . However, many unit tests fail because there needs to be a config file alongside the unittests.dll once it's built and ready to run. I've written a simple Command Line step with: copy %system.teamcity.build.checkoutDir%\xx.configfile <destination> The destination is the problem, I need it to be the Out directory teamcity creates. TC creates SYSTEM_<machinename> <datetime>\OUT . An example: C:\TeamCity\buildAgent\temp\buildTmp\SYSTEM_GIDEON 2015-07-02 16_51_09\Out