How can I extract System.Net.Mail from Mono and rename the namespaces?

Microsoft's implementation of System.Net.Mail does not provide a reliable mailing solution. I would like to use the Mono implementation of System.Net.Mail, but this namespace is built into the System.dll that comes with Mono and has the same namespaces as the original .net framework.

What I would like to do is extract System.Net.Mail from the mono solution and rename the namespaces to Mono.System.Net.Mail. Then I can compile this into my own DLL and finally create a post solution that works!

Can anyone tell me how this can be done?

+2


a source to share


2 answers


Just register the code from the svn repository ( svn co svn://anonsvn.mono-project.com/source/trunk/mcs/class/System/System.Net.Mail

), copy the required classes into a new project, change the namespace and compile the dll yourself. The Mono class libraries are licensed under the MIT license, so you just need to indicate that you are using them in your final product license and you're good to go.



+2


a source


You might be able to use extern alias (if you are using C #)



0


a source







All Articles