Hi Bert-Jan,
If you're running NAnt 0.85 RC3 or later, you can use
this:
<csc debug="Full" (define="DEBUG") ...
/>
or
<csc debug="PdbOnly" (define="DEBUG") ...
/>
Gert
Hi,
I want to compile an assembly in
release mode and also produce a .PDB file. Reason is that if there is a .PDB
file, line numbers are included in stack traces that come with
exceptions.
I tried adding a define="DEBUG"
attribute to the CSC task in my Nant scripts but to no avail. Anybody any
idea?
If I compile in Visal Studio I can
create a release assembly with a .PDB file without problems. (I found out how
on http://www.knowdotnet.com/articles/linenumbersinreleasemode.html)
Thanks,
Bert-Jan
|