Search code examples
powershell.net-coreraspberry-piwindows-iot-core-10

Console.ReadLine return null in powershell


I'm connecting to my .NET Core 2 app deployed to Raspberry Pi va PowerShell - the problem is that Console.ReadLine() is not waiting for user input but returns null. The same program in SSH works good? How can I make it work in PowerShell?


Solution

  • It seems a problem about powershell on Windows IoT Core. Even a blank windows iot core console application in C++, cin also appears the same issue. I have reported this issue via Feedback Hub App(https://aka.ms/AA3cmsf). Please wait patiently till it is fixed.So at the moment, you can use SSH instead.