[Mono-dev] Conditional compilation

Angel Marin anmar at anmar.eu.org
Thu Aug 30 16:35:37 EDT 2007


pablosantosluac escribió:
> I have a code fragment like the following:
[...]

>         <csc target="winexe" output="conditional.exe" debug="${debug}" 
> define="${define}" >

[...]

> But when I run the app no output is generated.
> 
> If I compile it directly with mcs it works as expected, printing the 
> Console.WriteLine message.
> 
> Do you find something wrong? Is it a bug on Nant?

Your nant task is building the code as winexe, so there is no console to
write to. Try target="exe".

Regards,
-- 
Angel Marin
http://anmar.eu.org/




More information about the Mono-devel-list mailing list