从源代码安装Mono 2.0.x单位要用.NET,没办法,必须学习,先用跨平台的Mono学习看看。Mono 2.0支持: Run ASP.NET, ADO.NET, and Windows.Forms 2.0 applications without recompilation Develop in C# 3.0 (including LINQ), VB 8, Java, Python, Ruby (http://www.ironruby.net/), Eiffel (http://www.eiffel.com/), F# (http://research.microsoft.com/fsharp/), Oxygene (http://remobjects.com/oxygene), and more Installing Mono 2.0.1Binary Packages and Source Code Downloads: Source code and pre-compiled packages for Linux, Solaris, Quick source code installation: If we have no packages for your platform, installing from Compile libgdiplus to support System.Drawing: $ tar xzf libgdiplus-2.0.tar.gz Then compile Mono itself: $ tar xzf mono-2.0.1.tar.gz Console Hello WorldTo test the most basic functionality available, copy the following code into a file called hello.cs. using System; To compile, use mcs: mcs hello.csUsing mcs to compile produces a .Net 1.1 assembly. To create a .Net 2.0 assembly, use gmcs: gmcs hello.csEither compiler will create "hello.exe", which you can run using: mono hello.exeThe program should run and output: Hello Mono WorldWinforms Hello WorldThe following program tests writing a Winforms application. using System; To compile, use mcs as well as the -pkg command to tell the compiler to pull in the Winforms libraries: mcs hello.cs -pkg:dotnetUsing mcs to compile produces a .Net 1.1 assembly. To create a .Net 2.0 assembly, use gmcs: gmcs hello.cs -pkg:dotnetEither compiler will create "hello.exe", which you can run using: mono hello.exe我的ubuntu linux还需要运行sudo ldconfig才能运行Winforms Hello World Why? 俺搞不定从源代码编译安装Monodevelop IDE!用ubuntu安装已有的软件包先学习着再说! |