在 Windows 应用商店应用程序中我可以使用:
System.Diagnostics.Debug.WriteLine("Test");
但是将 Debug
替换为 Trace
会出现以下错误:CS0103: The name 'Trace' does not exist in the current context
How can我解决这个问题?
最佳答案
WinRT 没有 Trace,也缺少跟踪监听器。 Debug.WriteLine
是您在不求助于 metrolog 等第三方的情况下所能做的最好的事情。 .
关于c# - 无法在 Windows 应用商店应用程序中使用 Trace.WriteLine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16522664/