NAnt – list all targets in build file

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.

Related Articles:

Post Footer automatically generated by Add Post Footer Plugin for wordpress.

About Jason Meridth

Continuously learning software developer trying to not let best be the enemy of better
This entry was posted in Uncategorized. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

One Response to NAnt – list all targets in build file

  1. Jimmy Bogard says:

    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.