0

我输入这个命令

gmcs -t:library Program.cs

并得到这个错误

Program.cs(6,14): error CS0234: The type or namespace name `Tasks' does not exist in the namespace `System.Threading'. Are you missing an assembly reference?

我知道我必须给它路径和一切,但是如何?找不到方法

4

1 回答 1

2

gmcs 针对 .NET 2.0 配置文件,Task 当时不存在。

在最近的 Mono 上只使用 mcs,因为gmcs 已被弃用并从 Mono 4.0 中删除。

于 2015-06-02T13:41:58.353 回答