Console.WriteLine does not output to Output Window in VS 2017

倾然丶 夕夏残阳落幕 提交于 2019-11-30 17:05:32

VS 2017 ( Community ) does not have "Hosting Process" as in VS 2015. In VS 2015 the "Hosting Process" can be enabled in the Debug panel of the Project Properties. With the "Hosting Process" is possible to output to Output Window ( when launching a Release config with Start Debugging ) using Console.WriteLine(). In VS 2017 there is no such enabler and so the Console.WriteLine() does not output to Output Window anymore.

Discovered that (System.Diagnostics.)Trace.WriteLine(Format(...)) outputs to Output Window in Release configs and can replace (System.)Console.WriteLine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!