I have an existing set of NAnt build scripts that runs with zero
dependency on CCNet, and I want to keep that functionality.  I would
like have CCNet run them, ideally without requiring any changes to the
existing build scripts.  To that end, I have created a NAnt task
within my CCNet.config, and when the NAnt script gets to a MSBuild it
fails:

Cannot create an instance of the logger. Could not load file or
assembly 'ThoughtWorks.CruiseControl.MsBuild.XmlLogger' or one of its
dependencies. The system cannot find the file specified.

This is with no alternate <logger></logger> in the NAnt task.  I have
tried a few ways of loading an alternative logger to no avail.

This: <logger>"C:\Program Files (x86)\CruiseControl.NET\server
\ThoughtWorks.CruiseControl.MSBuild.dll"</logger>

Produces this error: Could not load type C:\Program Files
(x86)\CruiseControl.NET\server\ThoughtWorks.CruiseControl.MSBuild.dll

If I take the quotes out it gives the same error for "C:\Program".

This:
        <buildArgs>-ext:"C:\Program Files (x86)\CruiseControl.NET
\server\ThoughtWorks.CruiseControl.MSBuild.dll"</buildArgs>
        <logger>ThoughtWorks.CruiseControl.MSBuild.XmlLogger</logger>

Produces this error: ThoughtWorks.CruiseControl.MSBuild.XmlLogger does
not implement NAnt.Core.IBuildLogger.
(Which is true, it implements ILogger.)

I have also tried Christian Rodemeyer's logger, and when specified in
the same fashion as the above example it throws the same error
(doesn't implement IBuildLogger).

I am running out of ideas.  If anyone knows how to get this to behave
without changing the task to an MSBuild task, please let me know!

Thank you,
# Nathan

Reply via email to