问题
I'm trying to load an assembly using reflection that uses the ISerializationBinder
binder from Newtonsoft, but when the assembly is loaded it throws the following exception:
System.Reflection.ReflectionTypeLoadException: 'Unable to load one or more of the requested types. Could not load type 'Newtonsoft.Json.SerializationBinder' from assembly 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'.'
I don't really have a clue of why it could be
回答1:
Well, honestly I'm still confused but I did a clean and then build of the assembly I was trying to load and that seemed to get rid of the old SerializationBinder class.
来源:https://stackoverflow.com/questions/58904011/loading-dll-that-contains-newtonsoft-assembly-with-reflection-error