title: Debug.WriteLine from Logging Assembly in Release Mode not writing to debug output in Visual Studio
body: <p>My logging library has a simple <code>DebugLogger</code> that looks like this:</p>
  <pre><code>public class DebugLogger : Logger
  {
      protected override void PerformLogging(string entry)
      {
          Debug.WriteLine(entry);
      }
  }
  </code></pre>
  <p>The logging library has been built in <code>RELEASE</code> mode.</p>
  <p>An application that references the logging library is being developed in <code>DEBUG</code> mode, naturally.</p>
  <p>The problem is that when the application using the logging library calls <code>DebugLogger.PerformLogging(&quot;some debug message&quot;)</code> nothing shows up in the Visual Studio debug output.</p>
  <p>I have verified things do work as expected when the logging assembly is built in <code>DEBUG</code> mode.</p>
  <p>I was expecting that that the entry assembly being in <code>DEBUG</code> mode would take precedence, but it looks like this is not the case.</p>
  <p>Is there anything that can be done?</p>
  <h1>edit</h1>
  <p><a href="http://msdn.microsoft.com/en-us/library/6x31ezs1.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/6x31ezs1.aspx</a> in the remarks section talks about the compiler ignoring Debug methods without <code>DEBUG</code> being defined.</p>