Hi
I cannot start a new build if I stopped the previous one during compiling with the command " tfsbuild stop ...."
the error is:
Target CoreClean:
Removing directory "c:\testbuild\captia41\test\BuildType\..\Sources".
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(230,5): error MSB3231: Unable to remove directory "c:\testbuild\captia41\test\BuildType\..\Sources". The directory is not empty.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(230,5): error MSB3231:
Done building target "CoreClean" in project "TFSBuild.proj" -- FAILED.
If I try to delete folder manually, I get an accces denied and I have to restart the build server, to continue.
Is that a known bug
Regards
Kim

bug when stopping running build?
BortNE24
okay if this helps
In the detailed buildlog I get the following lines for each file:
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(306,5): error : Access to the path 'c:\testbuild\captia41\test\Sources\TeamBuildTypes\test' is denied.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(329,5): error : Access to the path 'c:\testbuild\captia41\test\Sources\TeamBuildTypes\test' is denied.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets(301,5): error : c:\testbuild\captia41\test\Sources\13.0x_Documentation\OnlineHelp\Captia_WebHelp_da-DK_40\email\default.css: Access to the path 'c:\testbuild\captia41\test\Sources\13.0x_Documentation\OnlineHelp\Captia_WebHelp_da-DK_40\email' is denied.
/Kim
Evan Mulawski
I have seen a similar error. For some reason, my build fails as one of the directories cannot be deleted. I dont understand. The directory is not shared, however it fails.
Target CoreClean:
Removing directory "E:\builds\Epitome\MFG - EPITOME\Epitome Build\BuildType\..\
Sources".
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\
Microsoft.TeamFoundation.Build.targets(230,5): error MSB3231:
Unable to remove directory "E:\builds\Epitome\MFG - EPITOME\
Epitome Build\BuildType\..\Sources". The process cannot access
the file 'E:\builds\Epitome\MFG - EPITOME\Epitome Build\Sources\Epitome\Deployment'
because it is being used by another process.
Done building target "CoreClean" in project "TFSBuild.proj" -- FAILED.
Done building project "TFSBuild.proj" -- FAILED.
Build FAILED.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.
Build.targets(230,5): error MSB3231: Unable to remove directory "E:\builds\Epitome\MFG - EPITOME\Epitome Build\BuildType\..\Sources". The process cannot access the file 'E:\builds\Epitome\MFG - EPITOME\Epitome Build\Sources\Epitome\Deployment' because it is being used by another process.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.74
susanasusana
It does sound like it's a "file in use" problem. You may want to try this tool to determine which files are in use and by what process:
Unlocker
It will help you determine if that's the problem.
sheiderpbsj
Nope - as far as I know you are the first person to run into this issue, or at least to report it. Thanks for the heads up, and we'll keep an eye out for it in the future.
-Aaron
bill spinhoven
Regards,
chris