Is it possible to create a cross-platform shared library with MonoDroid and MonoTouch that can be used by non-Mono developers?

十年热恋 提交于 2019-12-03 12:42:50

The answer is no for both cases, it is not possible to create managed libraries that non-managed apps can use, neither on MonoTouch nor or Mono for Android.

This is because the managed libraries depend heavily on the managed runtime, they're not standalone libraries.

Vincent Bellet

I have the exact same question as you actually ... On iOS, from what I was able to gather from Xamarin, it's possible but not supported.Though, I am still waiting for an example :/

From what I understood, monodevelop is able to compile a native ARM library that can be used by an objectiveC source by doing something like that :

/Developer/MonoTouch/usr/bin/mtouch --linksdkonly --xcode=output_dir MyAssembly.exe

In your XCode project,it seems that you need to use the Mono-Embedding-API.

http://docs.go-mono.com/?link=root:/embed

It would be nice if xamarin could provide a source example because it's a highly needed feature for a toolkit like this!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!