copy app_offline.htm to target folder on deploy RRS feed

  • Question

  • User-1237676006 posted


    I would like to place an app_offline.htm file in the root of my deployment project as soon as my project starts building, and delete it after the complete deploy is complete, so I did something like this:

    <Target Name="BeforeBuild"><Copy SourceFiles="@(OfflineFile)" DestinationFolder="$(OutputPath)" /></Target>

    <Target Name="AfterBuild"><Delete Files="$(OutputPath)app_offline.htm" /></Target>

    Now the problem is that the AfterBuild event fires way to early, because the deploy hasn't even started yet then.

    Can anyone help me out on this one?

     Thanks, Wiebe

    Friday, November 7, 2008 9:04 AM