You use <csc> task.

NAnt decides whether to use any particular c# compiler depending on the
current framework.

You can set the framework in several ways:

1. Modify the "default" attribute in NAnt.exe.config. See this file for a
list of available frameworks.

2. Use -k parameter when invoking NAnt

nant.exe -k:mono-1.0

3. Set "nant.settings.currentframework" property from within the buildfile:

<property name="nant.settings.currentframework" value="mono-1.0" />
<csc ...>
    ...
</csc>

The above will cause NAnt to use "mcs" for compilation.

See the docs for more info.

Jarek

----- Original Message ----- 
From: "Craig Williams" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 16, 2004 7:41 PM
Subject: [Nant-users] erm, how do I call the mono compiler? for tasks not
nant


hi,

I want to compile my code using the mono compiler from NAnt, I don't care if
Nant itself uses MS's .NET framework. The only documentation I can find is
compiling NAnt itself which I'm not interested in at this point?

Right now I call csc as my task but I didn't see anything else?

thanks!
Craig



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to