首页 > 解决方案 > Where do Console.Writeline messages of a DLL go?

问题描述

I am using a DLL (whose code I can see also) that uses Console.WriteLine to write messages.

I am using it from a console application in which I use Trace.Writeline. If I eliminate the console (by making it a Windows application in the output of the Properties) where do these DLL console messages go?

Right now I am redirecting my Trace messages to go to a file even when running the release version. Is there a way to do something similar to the dll console messages?

And if not, if I put Trace messages in the DLL and recompile, are they also going to be redirected?

标签: c#visual-studio

解决方案


推荐阅读