Search code examples
perforcenant

Invalid Element <p4set>


I am trying to connect perforce with my nant scripting:

<p4set client="workspace" user="ramesh" port="panda:1666" />

But it is showing me error like:

invalid Element <p4set>. Unknown task or datatype. 

Solution

  • You need to ensure you've included NAntContrib in your build script - this is what contains the p4set task.

    Within your project element in the script, use the loadtasks task to load NAntContrib:

    <project default="help">
        <loadtasks assembly="d:\path\to\nantcontrib\NAnt.Contrib.Tasks.dll" />