1

I want to create a program that uses mono runtime to run C# code (binary not application).

I copied libmono.so from Unity app and I'm write code using this documentation:

http://www.mono-project.com/docs/advanced/embedding/

and it's working but i have a problems with references i can only access classes from mscorlib.dll and I have problems with System.Reflection.Assembly class it throwing exception, when i print it to console i see:

System.MissingMethodException: Method not found: 'System.Reflection.Assembly.op_Inequality'

Can i fix it?

Can i use mono runtime in C binary on Android?

PS. I'm using Android to tests.

Edit: I found a solution for loading libraries, it need to set environment variable MONO_PATH to libraries path.

But i have still problems with Assembly class.

1 Answer 1

1

The System.MissingMethodException error you have seems like a .NET Profile mismatch error, like the one explained here.

Can i use mono runtime in C binary on Android?

Yes, using the NDK I guess. But there are some alternatives which you can use instead of rolling your own, such as XmaDevLab.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.