My registration library has a simple DebugLogger that looks like this:
public class DebugLogger : Logger { protected override void PerformLogging(string entry) { Debug.WriteLine(entry); } }
The logging library was built in RELEASE mode.
An application that references the registration library is being developed in DEBUG mode, naturally.
The problem is that when an application using the log library calls DebugLogger.PerformLogging("some debug message") nothing is displayed in the debug output of Visual Studio.
I checked that everything works as expected when the logging assembly is built in DEBUG mode.
I expected the input assembly in DEBUG mode to take precedence, but it seems like it is not.
Is there anything that can be done?
Edit
http://msdn.microsoft.com/en-us/library/6x31ezs1.aspx in the notes section refers to the compiler ignores debugging techniques without DEBUG .
source share