Console.ReadLine return powershell 中为空

Console.ReadLine return null in powershell

我正在连接部署到 Raspberry Pi va PowerShell 的 .NET Core 2 应用程序 - 问题是 Console.ReadLine() 不是在等待用户输入而是 returns null . SSH 中的相同程序运行良好?如何让它在 PowerShell 中运行?

Windows IoT Core 上的 powershell 似乎有问题。即使是 C++ 中的空白 windows iot 核心控制台应用程序,cin 也出现相同的问题。我已通过反馈中心应用程序 (https://aka.ms/AA3cmsf) 报告了此问题。请耐心等待,目前fixed.So,您可以使用SSH代替。