编译单线程和多线程应用程序的问题 [英] Compiling issues with mono and multi-threaded application

查看:650
本文介绍了编译单线程和多线程应用程序的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编译一个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.

这篇关于编译单线程和多线程应用程序的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆