You can select the desired compiler using the default
attribute of the plateform
element in the configuration file Nant.exe.config
.
You can also choose at runtime by using the -t
switch. In example :
nant -t:net-4.0
will use csc and will target the .NET framework 4.0nant -t:mono-2.0
will use mcs and will target the .NET framework 2.0