如何在Linux下运行的C#项目 [英] How to run C# project under Linux

查看:576
本文介绍了如何在Linux下运行的C#项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道在Linux下运行一个C#项目的任何方式。是否有任何framewoks或库呢?

Do you know any ways to run a C# project under Linux. Are there any framewoks or libraries for this?

问候。

推荐答案

您正在寻找的 Mono项目 - 跨平台(但主要是针对Linux的)执行.NET Framework和CLR的。它能够运行编译为CLR(MS .NET)的二进制文件的创建自己的本机Linux程序,或

You're looking for the Mono Project - a cross-platform (but primarily targeted at Linux) implementation of the .NET Framework and CLR. It's capable of running binaries compiled for the CLR (MS .NET), or of creating its own native Linux binaries.

该项目已经持续一段时间了,它的最新版本(2.4)是非常有用的,甚至生产目的。请参阅项目路线图为主要功能的详细信息目前和将来的版本和里程碑。

The project has been going a while now, and it's current version (2.4) is very usable, even for production purposes. See the project roadmap for details of the main features and milestones of current and future releases.

关于当前状态的详细信息:

绝大多数的BCL(基类库)是适用于单声道,除一些.NET 3.0 / 3.5的东西,如WPF(其中有最小支持目前)和WCF(几乎不存在支持)。 Silverlight的2.0然而,正在通过月光项目的支持,并在该进展顺利。的WinForms功能(它使用GTK#作为后端),然而相当齐全,据我所知。

The great majority of the BCL (Base Class Library) is available on Mono, with the exception of some of the .NET 3.0/3.5 stuff, such as WPF (which has minimal support currently) and WCF (almost non-existent support). Silverlight 2.0 is however being supported via the Moonlight project, and progress on that is going well. WinForms functionality (which uses GTK# as a backend) is however quite complete, as far as I know.

在C#3.0语言的实施是有效地完成,包括C#3.0的功能,如拉姆达EX pressions LINQ 自动属性。我相信 C#编译器是成熟,它的效率至少可比用的MS编译器的角度来看,尽管还不匹配它在某些方面。什么是相当冷静(唯一的)对单C#编译器,现在是提供的编译器服务的 - 换句话说,从code真正的动态编译(不使用codeDOM)。这是什么,MS也许会只加在.NET 5.0。

Implementation of the C# 3.0 language is effectively complete, including the C# 3.0 features such as lambda expressions, LINQ, and automatic properties. I believe the C# compiler is mature to the point that its efficiency is at least comparable with that of the MS compiler, though not yet matching it in some respects. What's quite cool (and unique) about the Mono C# compiler is that is now offers a compiler service - in other words true dynamic compilation from code (without using the CodeDOM). This is something that MS will perhaps only add in .NET 5.0.

这篇关于如何在Linux下运行的C#项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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