ForceRebuild Property

NAnt SDK Documentation - v0.92 |

# CompilerBase.ForceRebuild Property

Instructs NAnt to recompile the output file regardless of the file timestamps.

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

#### Remarks

When this parameter is to true, NAnt will always run the compiler to rebuild the output file, regardless of the file timestamps.

#### See Also

CompilerBase Class | NAnt.DotNet.Tasks Namespace