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

问题描述:

我想编译一个C#应用程序使用TPL的linux,使用单声道。该应用程序是建立在Windows使用VS。我试图通过gmcs编译cs类。但是我得到这个错误:

I am trying to compile a C# app that uses the TPL for linux, using mono. The app was built on windows using VS. i am trying to compile the cs classes via gmcs. However i am getting this error:

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

有任何建议吗? >

any suggestions?

gmcs 目标2.0 corlib。尝试改用 mcs

gmcs targets 2.0 corlib. Try to use mcs instead.