我一直在尝试使用简单的行:
Console.Write(new string('=', Console.WindowWidth));
它是通过调用的dotnet test
。猜猜,
这里描述了这个问题
简短的堆栈跟踪:
System.IO.IOException: The handle is invalid
at System.ConsolePal.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
at System.ConsolePal.get_WindowWidth()
at System.Console.get_WindowWidth()
RTM 发布之前有什么解决方法吗?