TFSBuild.proj and Importing External Targets

后端 未结 3 905
臣服心动
臣服心动 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:16

    If you create an overrides target file to import and call it something like TeamBuildOverrides.targets and put it in the same folder in source control where TFSBuild.proj lives for your Build Type, it will be pulled first and be available for import into the TFSBuild.proj file. By default, the TFSBuild.proj file is added to the TeamBuildTypes folder in Source Control directly under the root folder of your project.

    use the following import statement in your TFSBuild.proj file:

    
    

    Make sure you don't have any duplicate overrides in your TFSBuild.proj file or the imported overrides will not get fired.

提交回复
热议问题