PowerShell - psake run clean up script after all tasks?

321 Views Asked by At

Is there a hook in psake to run a clean up block after ALL talks (not just per task)?

Thanks

1

There are 1 best solutions below

1
Roman Kuzmin On

There is not such an option, as far as I know. There are a few related issues:

If this feature is important, you may take a look at the similar tool Invoke-Build. It supports such features as two functions defined in a build script: Enter-Build (invoked before the first task, a place for initialization) and Exit-Build (invoked when a build is finished or failed, i.e. always, a place for clean up).