Invalid element <ncover>. Unknown task or datatype

Invalid element <ncover>. Unknown task or datatype

While building following error occurs :

NAnt.Core.BuildException <![CDATA[Invalid element . Unknown task or datatype.]]> D:\projects\FMComConsumer\trunk\BuildScripts\build.build 109 6 <![CDATA[ at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run()]]>

I have checked my build file and the linenumber it is pointing. And these seems to be fine. ncover program="${NCover.Console.exe}" commandLineExe="${nunit.exe}" commandLineArgs=""${tests.dll}"/xml:"${build.dir}\UnitTests.xml" workingDirectory="${testProjectFolder}\bin\Debug\" coverageFile="${artifacts.dir}\Tests.ncover.xml" logLevel="Normal" logFile="${build.dir}\Tests.ncover.log"/>

Please help me in this regard.


RE: Invalid element <ncover>. Unknown task or datatype

mahesh,

Did you remember to include the NCover NAnt plugin assembly? As shown here: http://docs.ncover.com/ref/nant-extension.