Ask a questionAsk a question
 

AnswerCopy all subfolder in custom build

  • Tuesday, November 03, 2009 1:35 PMcosmos38240 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    I would like in TFS2008 custom build get the output on my web_deploy project and automatically copy all files and folder to a specific directory.
    I was enjoyed because files are correctly copied BUT after few minutes I discovered that folder are not.

    Example : Web_Deploy -> file1
                   Web_Deploy -> file2
                   Web_Deploy -> Config -> file3

    After build in my directory I have :
     file1
     file2
     file3

    But I want
     file1
     file2
     Config -> file3


    This is my tfsbuild.proj :

    <

     

    CreateItem Include="$(OutDir)\_PublishedWebsites\web_deploy\**\*.*">
    <
    Output TaskParameter="Include" ItemName="web"/>
    </
    CreateItem>
    <
    Copy SourceFiles="@(web)" DestinationFolder="$(OutDir)\web_Deployment\Web" />
    </
    Target>

    Thank you
    Regards,
    Michaël

Answers

All Replies