I use TeamCity to run MSBuild to deploy a .NET website we have. The site uses the Sitecore CMS, which includes three folders, a few hundred files (and mbs) that have to bee in the main website root folder.
Currently, MSBuild deletes the entire web root folder before deploying itself into it. This causes two problems:
1) Our CMS is not accessible during the ~ 2 minutes it takes to deploy 2) The actual deployment takes long because we have to run a batch script to copy all of those files into the web directory after deployment.
Is there a way to have MSBuild not clear the whole root directory before deployment, or have it ignore certain folders? Thanks!