我正在尝试使用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
有什么建议吗?
答案 0 :(得分:0)
gmcs
定位2.0 corlib。请尝试使用mcs
。