Team Build, TestConfiguration and Deployment of files fails
I have a number of tests that require some additional data files be deployed, which I have specified the directory to deploy in the file defaulttestrun.testrunconfig file, in the Deployment item.
When running tests locally, everything works. The required directories and files appear in the <testrun>out\ directory.
However, when I run the build using TFS Team Build that I have setup, the deployment process tries to copy the files to themselves. Example error message from MSBuild with /verbosity:diag
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning :
Warning: Test Run deployment issue: Failed to copy file
'c:\builds\development\My Build\sources\MySolution\Test\Data\RawData\datafile1.dat' to
'c:\builds\development\My Build\sources\MySolution\Test\Data\RawData\datafile1.dat':
System.UnauthorizedAccessException: Access to the path
'c:\builds\development\My Build\sources\MySolution\Test\Data\RawData\datafile1.dat' is denied.
Of course it is denied because the deployment process it trying to copy the file over on top if itself.
Any ideas about what might be going on?
-mark

