As an early foray into IoT development, I wrote a simple "Hello World" console application in .NET Core 2.0 / C # and deployed it to the Raspberry Pi running Windows 10 IoT.
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine();
Console.WriteLine("Terminating");
}
Using this amazing article by Jeremy Lindsey I posted an exe for my PI and then remotely executed it in a PowerShell window. The application works fine, and also from one rather strange problem - instead of waiting until I press Enter after the output of "Hello World", it seems that it misses the call to Console.ReadLine () and immediately displays the text "Finish" before closing purely.
I can’t find reasons for this strange behavior - does anyone have an explanation and is there a way to get this to behave properly?

Pete source
share