<depends>

On execution guarantees the listed dependencies are resolved before continuing. It is particularly useful for handling dynamic dependencies that change based on some input conditions/parameters, or when the dependencies are not known until runtime.

The depends task never forces the execution of any target that has already been executed. It works just like the depends attribute of a Target.

Parameters

AttributeTypeDescriptionRequired
onstring A space or comma separated dependency list of targets. True
failonerrorbool Determines if task failure stops the build, or is just reported. The default is true. False
ifbool If true then the task will be executed; otherwise, skipped. The default is true. False
unlessbool Opposite of if. If false then the task will be executed; otherwise, skipped. The default is false. False
verbosebool Determines whether the task should report detailed build log messages. The default is false. False

Requirements

Assembly: NAnt.Contrib.Tasks (0.91.4312.0)