我正在托管一个需要 Console.ReadKey() 语句才能正常工作的 C# 应用程序。AppHarbor 似乎不支持这一点,它终止了我的应用程序并出现以下错误:
InvalidOperationException: Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try Console.Read.]
mscorlib_ni!System.Console.ReadKey(Boolean)+0x1ec
ZiFM!ZiFM.Program.Main(System.String[])+0xc0