tags:

views:

332

answers:

1

I'm using nant to build our product and have written a custom task to notify our helpdesk system that a new build is available.

I've used nant to build the custom task and also to copy the custom nant task assembly into the nant folder so it's loaded automatically.

Worked fine the first time I ran the build.

The second time I ran the build the copy task failed because nant has loaded the custom task assembly and locked the file. Grrr.

How can I get this to work?

+1  A: 

You don't need to copy the assembly to the NAnt folder, just place the following at the top of your build script:

<loadtasks assembly="path\to\MyAssembly.dll" />
Matt Howells
Ah, nice one. I didn't think to look for a task.
robaker