« Palm .pdb files vs. .Net's .pdb files | Main | Installing NAntContrib - Take 2 »
February 21, 2005
Installing NAntContrib - Getting NAntContrib to work with NAnt
NAntContrib has some powerful extensions for NAnt. However, getting NAntContrib to work with NAnt can be an uphill task. I had gotten it to work earlier by using the
Earlier this morning, I had upgraded to nant-0.85-rc2. When I tried running my build script, I kept getting:
Failure scanning "....bin\NAnt.Contrib.Tasks.dll" for extensions. One or more of the types in the assembly unable to load.
I tried several things:
1. Build NAnt and NAntContrib seperately and trying to load the tasks from NAntContrib using
2. Copying all the contents of NAnt\bin to NAntContrib\bin
However, it was the same old case of RTFM. The readme.txt file that comes with NAntContrib clearly states the following:
<FromTheReadMeFile>
In order to make certain tasks available to every build file, you can copy the tasks assembly and all its dependencies to the
.......
.....
Note: you'll have to manually create the "tasks\net" subdirectories.
</FromTheReadMeFile>
I created tasks\net under the bin directory of NAnt and then copied all the content of NAntContrib\bin to NANT\bin\tasks\net and the ran the script again to see BUILD SUCCEEDED.
Lesson learned: read the manual before using a product?
Yeh...right!
Posted by gunjan at February 21, 2005 06:19 PM
Comments
Can anyone assist me. I get same error above:
Failure canning "....bin\NAnt.Contrib.Tasks.dll" for extensions. One or more of the types in the assembly unable to load.
I did copy to bin/tasks/net. I just want to pull a file from sourcegear vault.
Here is simple.build file, executing nant from cmd line.
c:\program files\sourcegear\vault client\vault.exe
randy
12345
seq
SurfControl depot
$\Web Sites\SurfControl\branches\SurfControl5.0\BL
False
-rowlimit 0
C:\Projects\Web Sites\SurfControl\branches\SurfControl5.0\BL\Email\*.cs
Posted by: randy.kibbe at May 4, 2006 03:50 PM