Is there a way to list all tasks in a psake build file? Is there a way to list all tasks in a psake build file? powershell powershell

Is there a way to list all tasks in a psake build file?


Run:

invoke-psake -docs

This will list all the defined tasks.

Output columns are:

  • Name
  • Alias
  • Depends On
  • Default (true/false)
  • Description


I tried to visualize the task dependencies.

Not exactly what you wanted, but could help you. Look at psake-contrib/debugging.psm1 (it needs DLLs from https://github.com/stej/psake-contrib/tree/master/lib). Basically you call psake the same way as usually but instead of calling psake tasks, the tasks tree is displayed.

It doesn't display all the tasks, only the tasks that you specified on command line. Could be added though :)