How to use System.Console in UWP

我们两清 提交于 2019-12-20 07:09:52

问题


I want to use windows console in UWP. I know that there is System.Diagnostic.Debug but it provides me only methods to display message in windows console and I want to read from the console.


回答1:


System.Console is not available for UWP apps. If you want to create console app, use .NET Framework or .NET Core not Universal Windows Platform. The System.Diagnostics.Debug class is just for debugging purposes and users don't see its output.

However there are many other ways how to get user's input in UWP app, for example TextBox.



来源:https://stackoverflow.com/questions/44089694/how-to-use-system-console-in-uwp

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