我一直试图使用简单的行:
Console.Write(new string('=', Console.WindowWidth));
通过dotnet test
调用它。猜猜看,这个问题有所描述
here
简短的堆栈跟踪:
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发布前的任何解决方法?