Console.ReadLine return null in powershell

253 Views Asked by At

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?

1

There are 1 best solutions below

8
On BEST ANSWER

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.