How to use System.Console in UWP

后端 未结 1 1206
暗喜
暗喜 2021-01-29 05:31

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

相关标签:
1条回答
  • 2021-01-29 05:59

    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.

    0 讨论(0)
提交回复
热议问题