tags:

views:

138

answers:

2

Looking for the equivalent of Ant Replace task in Nant

A: 

There is no direct equivalent in Nant.

This link http://maonet.wordpress.com/2008/08/12/replace-file-content-in-nant-task/ has a couple of options.

ktaylorjohn
The equivalent is using filterchain and filters with the copy or move tasks.
Peter Lillevold
+2  A: 

As far as I can tell, the filter features in NAnt is exactly what you're looking for. Supported by the <copy> and <move> tasks, you define token replacement expressions that will transform file content during file copy/move operations.

Peter Lillevold