How to copy files from WDP Output directory to remote destination web server? RRS feed

  • Question

  • User2006178999 posted

    Hi folks,

    i'm trying to get my WDP to copy all the contents of the website that has been successfully compiled and sits in the WDP Output directory.

    Currently, i've got the following MSBuild task...

    <Target Name="AfterBuild">
    <Copy DestinationFiles="@(PrecompiledOutput->'$(DestinationWebServer)%(RecursiveDir)%(Filename)%(Extension)')" SourceFiles="@(PrecompiledOutput)" />

    The tasks semi works - files are copied but not all. I'm not exactly sure WHAT files are not being copied across, but i know that the Application_Start and Session_Start are not getting fired. I also know that if i manually copy over ALL the files from the WDP output directory to the destination web server (eg. \\\My Web Site) then the Application_Start/Session_Start _do_ get fired. This proves that the WDP does correctly build and compile the project successfully but my COPY task is not copying the correct information accross

    nbsp;So - anyone know of a nice way to copy across all the files from the output dir to the web site

    <CHEERS P < :)>

    Thursday, November 9, 2006 7:22 PM

All replies

  • User-503940700 posted


    I generally use the Publish functionality in VS 2005, if I am using WDP, I use some FTP software like Smart FTP to make the process more reliable. Also, while using the publish option i can see the status in the output window, which can be helpful.

    So I would suggest you to either FTP or use a MSI setup project with WDP.



    Friday, November 10, 2006 1:29 AM