I use TeamCity to build and deploy a collection of MVC applications through msbuild and WebDeploy.
In the step prior to my build / deploy decision, I copy app_offline.htm to the deployment directory so that I can perform SQL updates and other web server management steps, including building.
One of the options in WebDeploy is to delete files that are not included in the project or are not needed to run the site. This removes the app_offline.htm file each time. Although I understand that this is kind of the desired result, is there a way to exclude this file from the deployment directory during deployment?
I tried adding an ItemGroup with the ExcludeFromPackageFiles parameter without any results.
visual-studio-2010 teamcity webdeploy app- offline.htm
Anthony shaw
source share