1.环境:
/home/jello # uname -a
Linux 3.10.0 #2 SMP Mon Mar 6 17:52:09 CST 2017 armv7l GNU/Linux
2.获取mono源码
wget download.mono-project.com/sources/mono/mono-5.4.0.167.tar.bz2
3.解压
tar xvf mono-5.4.0.167.tar.bz2
4.切换目录
cd mono-5.4.0.167
5.切换到System.Xml.XmlSerializer.dll库的源码目录下:
cd mcs/class/Facades/System.Xml.XmlSerializer
6.使用mcs编译System.Xml.XmlSerializer.dll
mcs /target:library /out:System.Xml.XmlSerializer.dll *.cs
编译System.Net.Primitives.dll也是如上操作:
7.切换回mono的源码目录
cd mono-5.4.0.167
8.切换到System.Net.Primitives.dll库的源码目录下:
cd mcs/class/Facades/System.Net.Primitives
9.使用mcs编译System.Net.Primitives.dll
mcs /target:library /out:System.Net.Primitives.dll *.cs
ok,编译完成
时间: 2024-10-07 09:39:14