How can I solve this linker error

Hi,

I have my Linker Behavior set to 'Link Framework SDKs Only'

The error I'm getting is:
Can't resolve the reference 'System.Reflection.Emit.DynamicMethod', referenced from the method 'System.Func2<System.Object,System.Object> System.Web.Http.Metadata.Providers.AssociatedMetadataProvider1::CreateDynamicValueAccessor(System.Reflection.MethodInfo,System.Type,System.String)' in 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

I've tried the following additional mtouch arguments without any success:
--linkskip=System.Reflection
--linkskip=System.Reflection.Emit.DynamicMethod

Could anyone please advise on this?
Thanks

Answers

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @SomewhereElse,

    System.Reflection.Emit is not available on iOS. Whatever is using CreateDynamicValueAccessor might need to be refactored.

  • SomewhereElseSomewhereElse USMember ✭✭

    Thanks @JohnMiller, I'm not directly using System.Reflection anywhere, or a method called CreateDynamicValueAccessor.
    Is there any reasonable way I can find what package might be calling this?

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @SomewhereElse,

    I'm not sure of an easier way other than removing some packages that you think are the culprit and trying again.

    System.Web.Http.Metadata.Providers.AssociatedMetadataProvider might be a good indicator.

Sign In or Register to comment.