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

  • Question

  • User-700748220 posted

    Hi

    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

Answers

  • User470413944 posted

    HI,

    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)')" />
    </Target>
    

    For more details:

    http://msdn.microsoft.com/en-us/library/3e54c37h.aspx

    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