How to copy Web Application output from TFS-build to IIS Web Site? RRS feed

  • Question

  • User-700748220 posted


    I have just finished my automatic build on TFS 2010. Now I need to copy the WCF Web Service output from the subfolder _PublishedWebSites in the build drop folder over to my application folder in the IIS wwwroot-folder.

    This is just a simple xCopy really but how do I insert that into the TFS build process? I have a modified BuildTemplate (XAML) where I have some custom activities. I guess the xcopy-thingy should be placed somewhere after the "copy to drop folder"-something?

    And how do I use xcopy in a custom activity? InvokeProcess?

    Any help would be great!

    Thursday, March 10, 2011 8:33 AM


  • User470413944 posted


    As far as I know, yu can try to add a copy task in AfterBuild action:

    <Target Name="CopyFiles">
            <Copy  SourceFiles="@(MySourceFiles)"           DestinationFiles="@(MySourceFiles->'c:\MyDestinationTree\%(RecursiveDir)%(Filename)%(Extension)')" />

    For more details:


    I hope this can be helpful for you.


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 14, 2011 6:08 AM