First, your DLL has to be named "somenameTasks.dll"

To use it, you have to either:

1. place the *.dll containing the task in nant/bin directory
2. place the *.dll somewhere else and add the path to

nant.exe.config:/configuration/nant/@taskpath

by default, it's set to ".\optional" which means that the tasks are loaded
from "optional" under current directory. you may specify multiple paths
(both absolute and relative) by separating them with semicolons.

3. load the task manually by using <loadtasks> task.

<loadtasks assembly="foo.dll" />

Note that in this case the dll name doesn't have to end with "Tasks", but
it's a good idea to follow this as a rule too.

Jarek

----- Original Message ----- 
From: "larry chase" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 10, 2004 5:58 AM
Subject: [Nant-users] Building Custom NAnt Tasks


> I have looked at the source code for NAnt and it seems simple enough to
> create your own tasks, however I am having trouble finding out how to get
it
> working once I have created a task.  How do I enable NAnt to understand
the
> xml node elements etc.. of the tasks I just created?  Is there anyone or a
> thread that has a good reference for creating tasks.
>
> _________________________________________________________________
> Check out the great features of the new MSN 9 Dial-up, with the MSN
Dial-up
> Accelerator. http://click.atdmt.com/AVE/go/onm00200361ave/direct/01/
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to