Issue with Aspect Oriented Programming (AOP) on Xamarin.Android

Hi,

I am currently implementing support for Xamarin.Android in Catel. While the actual implementation works great, I seem to have found an issue with AOP.

In the AOP example, I rewrite a regular property into a "Catel" property. Even though the output assemblies are exactly the same, I get an exception in the AOP version. I have compared the assemblies on C# and IL level using .NET reflector.

To use the example, you you comment / uncomment lines in the MainViewModel. When not using AOP, the example works ok. When using AOP, it crashes with the following callstack:

  • Assertion at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/a1e3982a/source/mono/mono/metadata/loader.c:1110, condition `param_count' not met

Is it possible that the AOP is too late and that the mappings are incorrect? If so, how can I verify the mappings?

Thanks in advance!

Posts

Sign In or Register to comment.