Question

I'm attempting to build Log4Net for MonoTouch but the assemblies required also need to be built for MonoTouch including System.Configuration and I don't have this source.

Has anyone had any luck building Log4Net for MonoTouch ?

Was it helpful?

Solution

A large part of MonoTouch is built upon the Mono project. This means the majority of the source code, including the base class libraries (BCL), are available as open source on github.

Part of Mono's BCL is the System.Configuration.dll assembly so you can, technically, rebuild this assembly (from source) to use it inside your own projects.

The most difficult part will be to ensure that System.Configuration does not depend on things that are not part of the BCL profile shipped with MonoTouch (a superset of the Silverlight profile). That might require a bit of surgery to add/remove the required types and ensure you have everything required for your own project (Log4Net in this case).

OTHER TIPS

I would checkout ServiceStack.Logging I know that works on Mono...

https://github.com/ServiceStack/ServiceStack.Logging

Also this thread on google groups

https://groups.google.com/forum/#!topic/servicestack/dXWkiD5BIMk

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top