NAnt SDK Documentation - v0.92

Package.IfDefined Property

Indicates if the package should be passed to the task. If true then the package will be passed; otherwise, skipped. The default is true.

[Visual Basic]
<TaskAttribute(Required:=False, Name:="if", ExpandProperties:=True, ProcessXml:=True), _  BooleanValidator>
Public Property IfDefined As Boolean
[C#]
[TaskAttribute(Required=False, Name="if", ExpandProperties=True, ProcessXml=True)]
[BooleanValidator]
public bool IfDefined {get; set;}

See Also

Package Class | NAnt.DotNet.Types Namespace