copy app_offline.htm to target folder on deploy

Last post 11-09-2008 10:35 AM by wtijsma. 1 replies.

Sort Posts:

  • copy app_offline.htm to target folder on deploy

    11-07-2008, 9:04 AM
    • Member
      5 point Member
    • wtijsma
    • Member since 03-29-2005, 10:46 AM
    • Amsterdam
    • Posts 6

    Hi,

    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

  • Re: copy app_offline.htm to target folder on deploy

    11-09-2008, 10:35 AM
    Answer
    • Member
      5 point Member
    • wtijsma
    • Member since 03-29-2005, 10:46 AM
    • Amsterdam
    • Posts 6

    sorry for double posting, the answer is to be found here:

    http://forums.asp.net/t/1344946.aspx

Page 1 of 1 (2 items)