NAnt SDK Documentation - v0.92

ProjectBase.CopyFile Method 

Copies the specified file if the destination file does not exist, or the source file has been modified since it was previously copied.

[Visual Basic]
Protected Sub CopyFile( _
   ByVal srcFile As FileInfo, _
   ByVal destFile As FileInfo, _
   ByVal parent As Task _
)
[C#]
protected void CopyFile(
   FileInfo srcFile,
   FileInfo destFile,
   Task parent
);

Parameters

srcFile
The file to copy.
destFile
The destination file.
parent
The Task in which context the operation will be performed.

See Also

ProjectBase Class | NAnt.VSNet Namespace