Tuesday, 4 September 2007

NAnt task example - Update database

NAnt is a .Net build tool (which obviously similar to Ant). We have been using NAnt to create and deploy patches and I have been creating my own NAnt tasks to do the job. Recently I am thinking of enhancing the script that I have written couple of years ago.

Each user defined task has a TaskName, maybe some TaskAttribute too, and override ExecuteTask method. Let me just post an example of user defined task here.

Nant.UpdateDatabase.build.txt (save this as .build)

No comments:

Post a Comment