Release built DLL with Debug.WriteLine
This question already has an answer here:
If you look at the code of the Debug.WriteLine
method, you will see:
[Conditional("DEBUG")]
public static void WriteLine(string message, string category)
{
TraceInternal.WriteLine(message, category);
}
So basically, the call to this methods will only be compiled if you have set the DEBUG
flag. Typically, when using the Debug
configuration of your project.