查看: 181|回复: 0

解决vs2017中console.writeline 无法打印输出问题

[复制链接]
  • TA的每日心情
    奋斗
    2018-1-13 01:07
  • 签到天数: 178 天

    连续签到: 1 天

    [LV.7]常住居民III

    查看他的品牌

    发表于 2017-10-14 16:01:34 | 显示全部楼层 |阅读模式
    原文链接:https://stackoverflow.com/questions/42907667/console-writeline-does-not-output-to-output-window-in-vs-2017



    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.


    即:
    vs2017不再支持Console.WriteLine() 的日志输出
    取而代之的是
    Discovered that (System.Diagnostics.)Trace.WriteLine(Format(...))
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    站长推荐上一条 /1 下一条