Re: <msbuild> and nant.conrib.dll problems

Bob Archer <[email protected]>
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
I would take the loadtasks out of your script. Put all the NantControl/bin files into the Nant/bin folder. It should be able to locate them when you do that. Make sure you match the Nant and Nantcontrib versions.

BOb


From: James Dorrington [mailto:[email protected]]
Sent: Wednesday, November 25, 2009 8:27 AM
To: [email protected]
Subject: [NAnt-users] <msbuild> and nant.conrib.dll problems

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.<http://clk.atdmt.com/UKM/go/186394592/direct/01/>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.