I am using the MSBuild runner in Team city to build and deploy my project to a staging environment. Everything works perfectly except for the fact that it keeps removing my
Found the answer!
All you need to do is add the following property to the Properties attribute:
SkipExtraFilesOnServer=True;