MSBuild Removing Unnecessary Files

I am using TeamCity to launch MSBuild to deploy the .NET website that we have. The site uses Sitecore CMS, which includes three folders, several hundred files (and mbs), which should be in the root folder of the main site.

MSBuild is currently deleting the entire web root folder before deploying it. This causes two problems:

1) Our CMS is unavailable for ~ 2 minutes required for deployment 2) The actual deployment takes a long time because we have to run a batch script package to copy all these files to the web directory after deployment.

Is there any way that MSBuild does not delete the entire root directory before deployment or ignore some folders? Thanks!

+4
source share
1 answer

I have the same question, although I found that there is a "skip" parameter that you can use on MSDeploy to do just that.

It seems that MSDeploy teams work in MSBuild, I'm not much further than you.

I need to delete all but two directories and copy the rest. Let me know if you have made progress.

0
source

Source: https://habr.com/ru/post/1394227/


All Articles