Use nant to create a custom task.

I use nant to create our product and wrote a custom task to notify our support team that a new build is available.

I used nant to create a custom task, and also to copy a custom assembly of nant task to the nant folder so that it loads automatically.

It worked perfectly the first time you started the assembly.

The second time I started the assembly, the copy task failed because nant loaded the custom task assembly and locked the file. Hmm

How can I make this work?

+3
source share
1 answer

You do not need to copy the assembly to the NAnt folder, just place the following at the top of the assembly script:

<loadtasks assembly="path\to\MyAssembly.dll" />
+5
source

Source: https://habr.com/ru/post/1711996/


All Articles