[Mono-dev] Conditional compilation

pablosantosluac pablosantosluac at terra.es
Thu Aug 30 17:56:48 EDT 2007


it works if you compile it with mcs or csc...
----- Original Message ----- 
From: "Angel Marin" <anmar at anmar.eu.org>
To: <mono-devel-list at lists.ximian.com>
Sent: Thursday, August 30, 2007 10:35 PM
Subject: Re: [Mono-dev] Conditional compilation


> 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/
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 




More information about the Mono-devel-list mailing list