msbuildtasks icon indicating copy to clipboard operation
msbuildtasks copied to clipboard

Enhance DeleteTree with provisions for retrying on set intervals

Open dsidirop opened this issue 6 years ago • 1 comments

Retrying comes in handy when having to deal with the quirks that crop up when we try to deploy websites on IIS (running w3p.exe processes lock the directory and prevent < RemoveDir > from working as intended):

https://social.msdn.microsoft.com/Forums/vstudio/en-US/cb6acfa3-88e8-43c9-9a8b-0001b5ecf4e7/random-build-failures-on-removedir-task-error-msb3231-unable-to-remove-directory?forum=tfsbuild

Something like:

< DeleteTree Directories="..." Retries="3" RetryDelayMilliseconds="300" >

Would be nice I guess.

dsidirop avatar Dec 14 '18 11:12 dsidirop

Pull request:

https://github.com/loresoft/msbuildtasks/pull/287

dsidirop avatar Feb 13 '19 11:02 dsidirop