Search code examples
.netscriptingantbuild-automationnant

What's wrong with my Nant Record task?


I have the following in a build script:

<record action="Start" autoflush="true" name="${nant.log}"/>

The name value is valid. I get the following error message:

Invalid element <record>.Unknown task or datatype.

After looking at the documentation I am not sure why this is causing an error.

Any ideas?


Solution

  • It sounds like a configuration problem. There's discussion here on how to configure NAntContrib.

    From method 2:

    In order to make certain tasks available to every build file, you can copy the tasks assembly and all its dependencies to the "\bin\tasks" directory.