TargetNameExists Property

NAnt SDK Documentation - v0.92 |

# IfTask.TargetNameExists Property

NOTE: This property is now obsolete.

Use <if test="${target::exists('targetname')}"> instead.

Used to test whether a target exists.

[Visual Basic]
<Obsolete(Message:="Use <if test="${target::exists('targetname')}"> instead.", IsError:=False), _ TaskAttribute(Required:=False, Name:="targetexists", ExpandProperties:=True, ProcessXml:=True)>
Public Property TargetNameExists As String
[C#]
[Obsolete(Message="Use <if test="${target::exists('targetname')}"> instead.", IsError=False)]
[TaskAttribute(Required=False, Name="targetexists", ExpandProperties=True, ProcessXml=True)]
public string TargetNameExists {get; set;}

#### See Also

IfTask Class | NAnt.Core.Tasks Namespace