If I compile this C # code into an EXE file and run it in the Windows command shell, it works fine: output a line, waiting on the same line for some user input, and then input, repeat this input. Running in PowerShell v3 also works great. If, however, I run the same EXE file in PowerShell ISE V3, it never displays output from Write, and it hangs on ReadLine. (Aside, he will issue a conclusion from Writeif he later follows WriteLine.)
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
System.Console.Write("invisible prompt: ");
var s = System.Console.ReadLine();
System.Console.WriteLine("echo " + s);
}
}
}
Is this an ISE error or is there some kind of property to configure it to work ??
source
share