Have anyone already configure the linker to work properly with the Microsoft Unity container?
I have an app that is currently in production but at for now i've only use "SDK assemblies only". So i'm trying to reduce the size of this app and linker is the best option but i'm not getting to make it work.
I've already make a test: created a new Prism.Unity app, with the Prism Template Package and the only change that i made was set link to full mode...the app crashes as well.
The error message:
Unhandled Exception: 08-29 13:52:02.485 E/mono (12194): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Practices.Unity.ArrayResolutionStrategy' threw an exception. ---> System.InvalidOperationException: Sequence contains no matching element 08-29 13:52:02.485 E/mono (12194): at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00011] in <b5bd9d990a0b4733885e90ca5ec6c0fb>:0 08-29 13:52:02.485 E/mono (12194): at Microsoft.Practices.Unity.ArrayResolutionStrategy..cctor () [0x00014] in <95410a6f72e5460987abb52dc3238a18>:0 08-29 13:52:02.485 E/mono (12194): --- End of inner exception stack trace --- 08-29 13:52:02.485 E/mono (12194): at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object,System.Exception&) 08-29 13:52:02.485 E/mono (12194): at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object parameters) [0x00002] in <183b200ee49746d48fc781625979428e>:0 08-29 13:52:02.485 E/mono (12194): --- End of inner exception stack trace ---