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

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bert Jan Lappenschaar
Sent: donderdag 12 mei 2005 14:33
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] compiling in release mode with define:DEBUG flag

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

Reply via email to