invoke-build

How to create dynamic build tasks with Invoke-Build in PowerShell

三世轮回 提交于 2019-12-11 00:08:45
问题 Using Invoke-Build I am trying to create dynamic build tasks, an example of the approach is below. Where, in a similar fashion to the classic UNIX make facility an output file will be generated for each input file iff the input file is newer than the output file. It accomplishes this by dynamically generating a set of incremental tasks and then calling the tasks. The generation of the incremental tasks is outlined below: $Jobs = Foreach($_ in $Conf ) { $SourceFile = Get-Item $_ $FileName =