I'm not overly familiar with the website side of things but I can't see any reason you can't add a Target to your TFSBuild.proj that uses the RemoveDir task to remove the destination directory. The question is which of Team Build's targets you should override to do this. I think doing it in AfterClean would be too early because if your build fails then you won't have a website any more. You will need to find out in which step the deployment project does the publish and then override one of the targets that gets executed before this.
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Adler Sent: Monday, 15 January 2007 4:00 PM To: [email protected] Subject: RE: [OzTFS] More MSBuild & TFS Builds. Sorry William for not explaining the question more succinctly. We're using TFS for Web Site applications along with Deployment Projects to copy the website from source->destination. Some of our TFS Team Builds use a configuration which includes the Deployment Project. I'm under the impression that the deployment project uses MSBuild? therefore I was wondering how it could be possible to completely clean/delete/remove the _web site_ destination directory just before the <Copy ... /> task thingy is fired. BTW, we can use the ZIP task to zip the destination folder if that makes people sleep better at night :) Does this clarify my previous post/question? cheers :) ________________________________ Justin Adler Senior Developer Stargate Group Level 4, 600 Victoria Street Richmond Victoria 3121 Telephone: 03 8420 3009 Facsimile: 03 9428 1533 <http://www.stargategroup.com.au/> This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. No responsibility is assumed by the company or its employee to any other person for any loss or damage (whether caused by negligence or not) arising from the use of the information and advice contained herein. Finally, it is your responsibility to check any attachments for viruses and defects before opening or sending them on. ________________________________ ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of William Bartholomew Sent: Monday, 15 January 2007 4:46 PM To: [email protected] Subject: RE: [OzTFS] More MSBuild & TFS Builds. Team Build copies the output into a sub-directory of the DropFolder which is based on the BuildNumber so this destination will always be clean. The Team Build process performs the following actions as part of its Clean process: 1. Removes the SolutionRoot folder (where the source-code is stored). 2. Removes the BinariesRoot folder (where the build output is stored). 3. Removes the TestResultsRoot folder (where the test results are stored). So with these two things your build should be pretty clean, what isn't being deleted automatically that you would expect to be? If you do need to do any custom cleaning you can override either the BeforeClean or AfterClean targets. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Justin Adler Sent: Monday, 15 January 2007 3:00 PM To: [email protected] Subject: [OzTFS] More MSBuild & TFS Builds. Now that Grant has his problem solved and William seems to be an MSBuild guru ... I might throw in a semi-related question :) [read: Attention William :) ] Is there a way to have the build totally clean / remove _all_ files from the destination directory before the copy over? ________________________________ Justin Adler Senior Developer Stargate Group Level 4, 600 Victoria Street Richmond Victoria 3121 Telephone: 03 8420 3009 Facsimile: 03 9428 1533 <http://www.stargategroup.com.au/> This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. No responsibility is assumed by the company or its employee to any other person for any loss or damage (whether caused by negligence or not) arising from the use of the information and advice contained herein. Finally, it is your responsibility to check any attachments for viruses and defects before opening or sending them on. ________________________________ OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net
image001.gif
Description: image001.gif
<<attachment: image004.jpg>>
<<attachment: image005.jpg>>
