Rama devi
Rama devi

Reputation: 79

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. 

Upvotes: 1

Views: 61

Answers (1)

James Thorpe
James Thorpe

Reputation: 32202

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" />

Upvotes: 1

Related Questions