错误提示:
“System.InvalidOperationException”类型的未经处理的异常在 System.Console.dll 中发生 : ‘Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.’
在OmniSharp Visual Code docs里找到了答案:
Console (terminal) window
By default, processes are launched with their console output (stdout/stderr) going to the VS Code Debugger Console. This is useful for executables that take their input from the network, files, etc. But this does NOT work for applications that want to read from the console (ex: Console.ReadLine). For these applications, use a setting such as the following:
“console”: “integratedTerminal” When this is set to integratedTerminal the target process will run inside VS Code’s integrated terminal. Click the ‘Ter