0

我正在尝试使用单声道编译一个使用 TPL for linux 的 C# 应用程序。该应用程序是使用 VS 在 Windows 上构建的。我正在尝试通过 gmcs 编译 cs 类。但是我收到此错误:

gmcs Main.cs FileUtil.cs BH.cs 

BH.cs(6,24): error CS0234: The type or namespace name `Tasks' does not exist in the
namespace `System.Threading'. Are you missing an assembly reference?
Main.cs(17,24): error CS0234: The type or namespace name `Tasks' does not exist in the
namespace `System.Threading'. Are you missing an assembly reference?
BH.cs(6,24): error CS0234: The type or namespace name `Tasks' does not exist in the
namespace `System.Threading'. Are you missing an assembly reference?
Compilation failed: 3 error(s), 0 warnings

有什么建议么?

4

1 回答 1

0

gmcs针对 2.0 corlib。尝试mcs改用。

于 2013-11-29T16:59:40.150 回答