I'm trying to compile a simple project using the mcs task, but get the
error below:

D:\utv\dev\VBD.NET\Build>bin\nant -verbose -buildfile:core.build
Buildfile: file:///D:/utv/dev/VBD.NET/Build/core.build
Base Directory: D:\utv\dev\VBD.NET\Build

VBDCore.Debug:

setup:
     [copy] Copying 0 files to D:\utv\dev\VBD.NET\Build\..\Bin\Debug

VBDCore:
      [mcs] Compiling 16 files to D:\utv\dev\VBD.NET\Bin\Debug\VBDCore.dll
      [mcs] Contents of d:\temp\tmpBD.tmp
--target library
--define DEBUG;TRACE
-o D:\utv\dev\VBD.NET\Bin\Debug\VBDCore.dll
-r D:\utv\dev\VBD.NET\Bin\Debug\log4net.dll
[filelist removed]

      [mcs] D:\utv\dev\VBD.NET\Build>mcs @d:\temp\tmpBD.tmp

BUILD FAILED
D:\utv\dev\VBD.NET\Build\core.build(66,6): SourceForge.NAnt.Tasks.McsTask:
Error
 running external program (mcs), see build log for details.The system
cannot fin
d the file specified
Try 'nant -help' for more information

D:\utv\dev\VBD.NET\Build>

Mono bin and lib folders are in the system path, and I can compile using
the mcs command line tool. I also tried copying mcs from mono/bin and
mcs.bat from %systemroot% to the current folder before running nant.

Tried looking at the nant source code, but the level of generalization and
inheritance initially put me off (tight schedules as always) - is it the
TaskName("mcs") attribute that specifies the name of the exe file?

Best regards,

Dag Christensen
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft
Exchange.
For more information, connect to http://www.F-Secure.com/



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to