我输入了这个命令
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?
我得到它必须给它的路径和一切,但如何?找不到办法做到这一点
答案 0 :(得分:2)
gmcs以.NET 2.0配置文件为目标,当时Task不存在。
在最近的Mono中,只使用mcs,gmcs is deprecated并从Mono 4.0中删除。