Hi, I've installed CC.net on a server machine and successfulyl tied it in to SVN so that it builds on SVN changes and runs some simple Nunit tests. While setting it all up, I was using a small C# application that was compiled in the Nant script using the <csc> tag without any problems.

However, I'm now trying to get the setup working with some more substantial projects I'm encountering some problems. Instead of using <csc> to compile a simple helloworld.cs program, I'm trying to build entire solutions. After some searching I'm using some code like the following:

----------------------
<loadtasks assembly="C:/Program Files/nant-0.85/bin/NAnt.Contrib.Tasks.dll" />
<msbuild>
      <executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe</executable>
      <workingDirectory>.\output</workingDirectory>
      <projectFile>eChameleon.sln</projectFile>
      <buildArgs>/noconsolelogger /p:Configuration=Debug /v:diag</buildArgs>
      <targets>Build;Test</targets>
      <timeout>900</timeout>     
      <logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MsBuild.dll</logger>   
    </msbuild>
----------------------
but I keep getting the following error message:
----------------------
[loadtasks] Failure scanning "C:\Program Files\nant-0.85\bin\NAnt.Contrib.Tasks.
dll" for extensions. Unable to load one or more of the requested types. Retrieve
 the LoaderExceptions property for more information.
Buildfile: file:///C:/Development/eChameleon_Suite/Trunk/eChameleon/app.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build


build:

     [echo] Started building
[loadtasks] Scanning assembly "NAnt.Contrib.Tasks" for extensions.

BUILD FAILED

C:\Development\eChameleon_Suite\Trunk\eChameleon\app.build(7,6):
Failure scanning "C:\Program Files\nant-0.85\bin\NAnt.Contrib.Tasks.dll" for ext
ensions.
    Unable to load one or more of the requested types. Retrieve the LoaderExcept
ions property for more information.
-------------------------

I've downloaded the Nant.contrib package and tried copying it to both Nant\bin folder, and also on another occasion to some sub-folders of Nant (tasks\net and somewhere else)
Can anyone tell me what I'm doing wrong?

Many thanks

James


View your other email accounts from your Hotmail inbox. Add them now.