Mono

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Android)
(项目)
第144行: 第144行:
 
==项目==
 
==项目==
 
*[[Xamarin]]
 
*[[Xamarin]]
 +
*[[MonoDevelop]]
 
*[[MonoXNA]]
 
*[[MonoXNA]]
 
*[[MonoGame]]
 
*[[MonoGame]]

2020年5月12日 (二) 14:39的版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 Mono Thanks, Wikipedia.

Mono是一个由Novell公司主持的开源(GPL、LGPL、MIT X11、MPL)项目。该项目的目标是创建一系列符合ECMA标准(Ecma-334和Ecma-335)的.NET工具,包括C#编译器和共通语言执行平台。与微软的.NET Framework不同,Mono项目不仅可以运行于Windows系统上,还可以运行于Linux,FreeBSD,Unix,Mac OS X和Solaris。

Mono IDE: MonoDevelop,单元测试:NUnit

目录

简介

Mono 是 ECMA CLI, C# 和 .NET 的开源实现,采用 MIT 许可协议。

功能

规范实现

版本

  • 5.4
  • 5.2
  • 5.0
  • 4.0

兼容性

.NET 4.0 完全实现:

  • C# 4.0
  • ASP.Net 4.0
  • ASP.Net MVC 1 and MVC 2
  • System.Numerics
  • Managed Extensibily Framework - Shared with .NET via MS-PL license
  • Dynamic Language Runtime - Shared with .NET via MS-PL license
  • Client side OData - Shared with .NET via MS-PL license
  • Parallel Framework and PLINQ

.NET 3.5 完全实现:

  • C# 3.0
  • System.Core
  • LINQ
  • ASP.Net 3.5
  • ASP.Net MVC
  • LINQ to SQL - Mostly done, but a few features missing

其它版本和部分实现、未实现功能 >>>

macOS

下载安装包

brew install autoconf automake libtool pkg-config cmake
brew install mono
brew upgrade mono

Debian

apt-get install mono-2.0-devel // on Lenny (5.0).
apt-get install mono-devel // on Squeeze (6.0), Wheezy (testing), Sid (unstable), or Experimental.*
apt-get install mono-complete // complete Mono on Squeeze (6.0), Wheezy (testing), Sid (unstable), or Experimental.
mono-csc -help
apt-get install openssh-server //安装oen ssh远程管理
apt-get install apache2 //安装apache
apt-get install mono-gmcs mono-xsp2 libapache2-mod-mono mono-apache-server2 //安装mono
a2enmod mod_mono

//命令会被打断 手动运行dpkg --configure -a 纠正问题

vim /etc/apache2/mods-available/mod_mono.conf //配置.net引擎目录
AddType appliction/x-asp-net  .aspx .ashx .asmx .ascx .asax .config .ascx .axd
DirectoryIndex index.aspx
MonoAutoApplication enable
MonoServerPath "/usr/bin/mod-mono-server2"

Include /etc/mono-server2/mono-server2-hosts.conf

/etc/init.d/apache2 resuart //重启apache

Windows

在 Windows、Windows Server 上安装 Mono、替换 IIS 6、IIS 7、IIS 8。

Apache

ASP.NET 4.0

ASP.NET 3.5

Mono 实现了 ASP.NET 2.0, ASP.NET MVC and ASP.NET AJAX

通过mod_mono运行在Apache Server上

apt-get install mono-apache-server2 asp.net-examples libapache2-mod-mono 
vim /etc/apache2/httpd.conf
Alias /webmsg "/var/www/webmsg"
MonoApplications "/webmsg:/var/www/webmsg"
<Location /webmsg>
        SetHandler mono
</Location> 
然后 /etc/init.d/apache2 restart
http://localhost/webmsg/Login.aspx

XSP

apt-get install mono-xsp2 mono-xsp2-base asp.net-examples
/usr/bin/mono /usr/lib/mono/2.0/xsp2.exe --port 8082 --address 0.0.0.0 --appconfigdir /etc/xsp2 --nonstop
http://192.168.1.100:8082/samples/

Nginx

apt-get install nginx
apt-get install mono-fastcgi-server4
fastcgi-mono-server4 /version
fastcgi-mono-server4.exe 2.10.0.0
(c) 2007 Brian Nickel
FastCGI Backend for XSP
fastcgi-mono-server4 /applications=/:/web/aspx /socket=tcp:192.168.1.131:9000 &

Nginx配置

server {
        listen   80;
        server_name  192.168.1.131;
        access_log   /var/log/nginx/192.168.1.131.access.log;

        location / {
                root /web/aspx;
                index index.html index.htm default.aspx Default.aspx;
                fastcgi_index Default.aspx;
                fastcgi_pass 192.168.1.131:9000;
                include /etc/nginx/fastcgi_params;
        }
}

Nginx运行 ASP.NET 和 ASP.NET MVC web 应用

Android

Xamarin.Android

Mono-android.png

iOS

Xamarin.iOS

Mono-ios.png

MoMA

Mono Migration Analyzer (MoMA)

PostgreSQL

推荐在 .NETMono 上 使用 Npgsql

项目

Code

LLVM

图集

链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱