scriptcs / scriptcs-engines

scriptcs-engines contains Microsoft.CodeAnalysis-based script engines for scriptcs - for both C# and Visual Basic.
Apache License 2.0
19 stars 7 forks source link

Reading user input from powershell through scriptcs #12

Open boney84 opened 8 years ago

boney84 commented 8 years ago

hi guys, Here I have a problem to read user inputs from Command prompt or windows powershell through scriptcs.I tried with Console.ReadLine(),Console.Read() or Console.ReadKey() wrapped it around Convert.ToString() to get user response but none of them gives result.Do I need any special package to handle the user input. Any help is appreciated.

boney84 commented 8 years ago

Hi guys, I got the solution I was previously executing through Windows power shell and so I don't get the response as desired while using Console.ReadLine() or Console.Read(). But when I work the scriptcs code in command prompt it reads the input and works as expected.