The following code snippet is from the WriteOptions of the CcsTask:

if (Debug) {
        WriteOption(writer, "debug");
        WriteOption(writer, "define", "DEBUG");
        WriteOption(writer, "define", "TRACE");
}

Why does it output the two 'define' options? The 'define' stuff is handled
by CSC's superclass.

VS allows one to declare these options independently, such that one can
produce a release build without using DEBUG, but generating the pdb files.
This strips out any code that is not really to be in a release build, but
still allows one to run a debugger on it. This may not be a common practice,
but it still is done.

Randy




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to