Hello!

I have been google:ing for half an hour now... and still can't find 
anything that tells me I'm right or wrong, can you please do!?

I have a piece of code that adds a TraceListener and then uses 
System.Diagnostics.Trace.WriteLine to put information to that particular 
Listener.
[xml snip from my buildfile]
<csc target="library" output="xyz.dll" debug="false" >
[/xml snip]
No output will show for listener. But if I change debug to true - then I 
get BOTH Trace and Debug-lines in my TraceListener-destinations.

afaik I should get my Trace.WriteLines only, and no Debug-lines, when 
running in "release-mode" - debug="false" but I won't get it to work - 
does anyone else!? (it works, of cause, when I compile from VS.NET).



...for testing only, I looped through all my listeners and WriteLine to 
them eachone of them INSTEAD - lets take a gues... that works fine...
instead of System.Diagnostics.Trace.WriteLine("") I used
System.Diagnostics.Trace.Listeners[0].WriteLine("");
System.Diagnostics.Trace.Listeners[1].WriteLine("");

I'm useing NAnt 0.85 with parameter  -t:net-1.1 if that is worth to know.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to