Hello Jay,

The taskdef task was moved into the NAntContrib package, and you will need
to copy it into the bin folder to use it, just like your task(s). Only
assemblies that end in *Tasks.dll are loaded, and any <Tasks> in them are
added to the available task list.

In the future, when someone takes the task upon themselves, there will be a
feature to use a config file to specify which assemblies are analyzed to
load tasks definitions. But in the mean-time you will need to name your
custom tasks in the format of <custom_name>Tasks.dll or use the NAntContrib
taskdef to do it.

HTHs.

----- Original Message -----
From: "Vashi, Jay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 10, 2002 8:21 AM
Subject: [nant-dev] Taskdef question


> Hello,
>
> I'm writing a couple of custom tasks for Nant and have a question about
how
> to use them.  I saw in the examples (I'm working off of version
> 0.8.888.15180) that after I've compiled my dll I should use the taskdef
task
> to reference it.  However, when I try it I get the error "Unknown task
> <taskdef>".  My build file looks like:
>
> <project name="test" basedir="." default="test">
>         <taskdef assembly="jayu.nant.dll"/>
>
>         <target name="test">
>                 <CVSExport repository=":ntserver:littleboy:/jtv"
>                            module="StaffingPlan/Prototype"
>                            dir="output" />
>         </target>
> </project>
>
>
> And I've put jayu.nant.dll in the nant\bin directory.
>
> Can someone point me in the right direction?
>
> TIA
>
> j
> --
> Jay Vashi
> Mustang Engineering
> [EMAIL PROTECTED]
>
> ######################################################################
> Attention:
> This e-mail message is privileged and confidential. If you are not the
> intended recipient please delete the message and notify the sender.
> Any views or opinions presented are solely those of the author.
>
> This email was scanned by MailMarshal from Marshal Software.
> ######################################################################
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to