Creating a build process template which does nothing but copy all files to another directory

后端 未结 3 1101
清歌不尽
清歌不尽 2021-01-23 22:16

I would like to create a Build Definition inside TFS 2012 Express which will simply copy all files within my project source tree to another folder on my drive. Just to underline

3条回答
  •  旧时难觅i
    2021-01-23 22:47

    Using this post as a guide on how to start editing TFS Build Templates (or the Wrox TFS 2012 book), you need to make the following changes:

    • Locate the Copy to Drop Folder Activity:

    Copy to Drop Location

    • Drag in a "CopyDirectory" activity under the "Drop Files to Drop Location" (from the Toolbox under Team Foundation Build Activities):

    Copy Directory

    • Goto the Properties Window for the new Activity and set Source and Destination as follows:
      • Destination: Path.Combine(BuildDetail.DropLocation, "MyOutputFolder")
      • Source: Path.Combine(SourcesDirectory, "MyFileFolder")

    You may need to repeat this if you don't have all your files in one folder.

提交回复
热议问题