AOT, link.xml and bytecode stripping problems
Hi guys!
I had a problem with this code:
public class InvokableCallback<T0, T1, TReturn> : InvokableCallbackBase<TReturn>
Error says:
ExecutionEngineException: Attempting to call method 'SerializableCallback.InvokableCallback'3[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]::.ctor' for which no ahead of time (AOT) code was generated. Unity : at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) Unity : at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) Unity : at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureI
I tried link.xml file with this content:
<linker>
<assembly fullname="SerializableCallback">
<type fullname="SerializableCallback.*" preserve="all"/>
</assembly>
<assembly fullname="System">
<type fullname="System.*" preserve="all"/>
</assembly>
<assembly fullname="mscorlib">
<namespace fullname="System.*" preserve="all"/>
</assembly>
</linker>
...and this...
...
<assembly fullname="SerializableCallback">
<type fullname="*" preserve="all"/>
</assembly>
...
...and so many other variants...
...
<assembly fullname="System.Reflection">
<type fullname="*" preserve="all"/>
</assembly>
...
But no one of this isn't working. Please, really need your help, all opinions will be helpful!