TFSBuild.proj and Importing External Targets

后端 未结 3 903
臣服心动
臣服心动 2021-01-12 11:18

We want to store our overridden build targets in an external file and include that targets file in the TFSBuild.proj. We have a core set steps that happens and would like to

3条回答
  •  离开以前
    2021-01-12 12:11

    If the targets should only be run when TFS is running the build and not on your local development machines, you can put your targets file in the folder for the build itself and reference it with:

    
    

    However, if you want the targets to run for all builds, you can set it up so that the individual projects reference it by adding something like:

    
    

    On my project we actually use both of these, the first allows us to customize the nightly builds so we can do extra steps before and after running the full solution compile, and the second allows project-by-project customization.

提交回复
热议问题