Just add a little to answer Kyle and Steve.
If you open the .csproj file in a text editor, you can see how the Debug and Release configuration defines the characters.
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> ... <DefineConstants>DEBUG;TRACE</DefineConstants> ... </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> ... <DefineConstants>TRACE</DefineConstants> ... </PropertyGroup>
Active configuration is set using
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
but, as Kyle already mentioned, your code essentially adds it to all configurations.
source share