Jason Meridth

I am a continuously learning senior full stack SDE/SRE trying to not let best be the enemy of better.

Buy me a coffeeBuy me a coffee

NAnt - list all targets in build file

07 Nov 2007 » »

For my recollection and anyone else who finds the need to list all projects for a build file:

nant -projecthelp

I keep forgetting this and want to centralize it for my knowledge.

Hope this helps someone else.


Jimmy Bogard: Also, it will separate your targets out to “Default Target”, “Main Targets”, and “Sub Targets”. “Default Target” is obvious of course, but the other two are broken out by the “description” attribute. If a target has a description, it goes in the “Main Targets” list, otherwise, it goes in the “Sub Targets” list. I used to document all my targets with “description”, but now I only do the “public” ones. XML comments are better suited for more detailed descriptions.