【问题标题】:Compiling issues with mono and multi-threaded application单线程和多线程应用程序的编译问题
【发布时间】:2013-11-29 13:47:31
【问题描述】:

我正在尝试使用 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

有什么建议吗?

【问题讨论】:

    标签: c# compiler-errors mono gmcs


    【解决方案1】:

    gmcs 针对 2.0 corlib。尝试改用mcs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-02
      • 1970-01-01
      • 2012-11-14
      • 1970-01-01
      • 2013-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多