如何使用.NET Standard 1.1写入stdout / stderr

时间:2018-11-04 00:34:31

标签: c# .net .net-standard

正在构建.NET库,并希望以.NET Standard 1.1为兼容性。我已经在构建它并进行一些基本的运行,但是我不知道如何写到控制台(!)。尝试使用System.Console.Write会出现错误:

error CS0234: The type or namespace name 'Console' does not exist in the namespace 'System' (are you missing an assembly reference?)

我有using System,并且如果我定位到.NET Standard 1.3或更高版本,代码也可以正常工作。

.NET Standard 1.1 能够写入控制台,对吧?!

0 个答案:

没有答案