使用dotnet cli时如何使用输出流?

时间:2016-10-02 13:12:01

标签: c# .net-core dotnet-cli

我一直试图使用简单的行:

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发布前的任何解决方法?

0 个答案:

没有答案