No they will not be compiled. Any call to any method marked with
[Conditional("DEBUG")]
will not be compiled in the release build.
Note however that this is not the same as the called method itself not being
compiled. If you write a method so marked in any of your own assemblies, it
will still get compiled into your release assemblies even though any calls
to it will not be compiled.
> hi,
>
> does lines like System.Diagnostics.Debug.WriteLine([some_message]); that
> i have around my code in few places get compilled when i make Release
> build in Visual Studio?