编译单线程和多线程应用程序的问题

时间:2013-11-29 13:47:31

标签: c# compiler-errors mono gmcs

我正在尝试使用mono编译一个使用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

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

gmcs定位2.0 corlib。请尝试使用mcs

相关问题