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

[1490 byte] By [MWatts] at [2007-12-21]
# 1

MWatts,

I just posted and got an answer to this same problem and will be reporting it directly to the team build program manager I met at teched. The solution can be found at http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=492538&SiteID=1.

dotnetwizkid at 2007-9-10 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - Build Automation...

Visual Studio Team System

Site Classified