Aahh... nice thank you! works fine: <csc ... define="TRACE" > ( '=True' wasn't nessessary though )
I could never have figured it out by myselfe, thankyou for your information! -- Patrik Chris Snider skrev: > Can you add a define="TRACE=True" to the csc line and check that? > > <csc target="library" output="xyz.dll" debug="false" define="TRACE=True" > > Christopher B. Snider > Technical Lead, Reg.Net Team > 719.302.0200 x403 > chris_snider (Yahoo! messenger ID) > ----------------------------------------------------------- > "You can't argue with a word like 'fraught'" > Tigger > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Patrik > Nordlund > Sent: Wednesday, May 14, 2008 3:11 PM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] System.Diagnostics.Trace in combination > withdebug=false !? > > 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 > ------------------------------------------------------------------------- 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