cool , I found it.
Thre is a checkbox that says Defin Debug Constant already checked in the
debug configuration.
That is what I wanted to do.
I can't always remember to define one. This will be helpful. Keep me from
burning a CD with Debug code still in.
Danke Herr Wagner, Guten Aben (I think good evening... not sure.... I
remember, Guten Morgan,Guten tag, Guten Aben...)
Shane
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
"SStory" <Th*******@TAKETHISSPAMBUSTEROUT.Softhome.net> schrieb: I would like to have some code compile if my Active
Configuration is set to debug and not compile if it
is set to Release.
I don't want to have to remember to define a constant.
I just want to change configurations and all debug code
not execute.
\\\
#If Debug Then
...
#End If
///
Select the project in the project explorer, select the "Project" menu ->
"Properties" -> "Configuration Settings" -> "Build" -> "Define DEBUG
constant" (translated from the German language version of VS.NET 2002).
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>