1. Environment:
/home/jello # Uname-a
Linux 3.10.0 #2 SMP Mon Mar 6 17:52:09 CST armv7l gnu/linux
2. Get Mono Source code
wget download.mono-project.com/sources/mono/mono-5.4.0.167.tar.bz2
3. Unzip
Tar xvf mono-5.4.0.167.tar.bz2
4. Switch directories
CD mono-5.4.0.167
5. Switch to the source directory of the System.Xml.XmlSerializer.dll library:
CD Mcs/class/facades/system.xml.xmlserializer
6. Compiling System.Xml.XmlSerializer.dll with MCs
Mcs/target:library/out:system.xml.xmlserializer.dll *.cs
Compiling the System.Net.Primitives.dll is also done as above:
7. Switch back to Mono's source directory
CD mono-5.4.0.167
8. Switch to the source directory of the System.Net.Primitives.dll library:
CD mcs/class/facades/system.net.primitives
9. Compiling System.Net.Primitives.dll with MCs
Mcs/target:library/out:system.net.primitives.dll *.cs
OK, compile complete
System.Net.Primitives.dll and System.Xml.XmlSerializer.dll under the ARM Linux compilation Library