I want to perform some copy actions on the build machine (but not on the developer machines)
- after a build is performed and
- before the integration tests run.
How do I do that?
Perhaps, I should split the question up into sub-questions and give some examples.
Question 1: What do I need to do so that the MSBuild script detects that it is being executed on the build machine and therefore does a copy operation? Do I adapt the *.csproj file? Do I do something within the Build Definition file? The build server is part of our TFS 2010 backend.
Question 2: What variable do I need to use to reference the build folder on the build machine? The absolute path is
C:\Builds\1\ProjectX\Continous Integration\
I need to copy some files which are under version control and end up in the Sources folder to the Binaries folder.
C:\Builds\1\ProjectX\Continous Integration\Binaries
C:\Builds\1\ProjectX\Continous Integration\Sources
C:\Builds\1\ProjectX\Continous Integration\TestResults