为什么 bash(mono) 中的 gmcs 命令缺少名称空间“System.Threading”?
why is gmcs command in bash(mono) missing the namespace `System.Threading'?
我输入这个命令
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?
我知道我必须给它路径和所有东西,但是怎么办?找不到方法
gmcs 以 .NET 2.0 配置文件为目标,Task 当时不存在。
在最近的 Mono 上只使用 mcs,因为 gmcs is deprecated 并已从 Mono 4.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?
我知道我必须给它路径和所有东西,但是怎么办?找不到方法
gmcs 以 .NET 2.0 配置文件为目标,Task 当时不存在。
在最近的 Mono 上只使用 mcs,因为 gmcs is deprecated 并已从 Mono 4.0 中删除。