3

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
  • Edited to what I think the question is :) Jul 7, 2009 at 12:27

1 Answer 1

5

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" />
1
  • Ah, nice one. I didn't think to look for a task.
    – robaker
    Jul 7, 2009 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.