Assembly.GetTypes() - ReflectionTypeLoadException

前端 未结 3 1105
生来不讨喜
生来不讨喜 2021-01-01 22:16

We implement a plugin framework for our application and load plugin assemblies using Assembly.Loadfrom. We then use GetTypes() and further examine the types with each plugin

3条回答
  •  长情又很酷
    2021-01-01 22:27

    You are getting an assembly version mismatch. Since your plugins refer to this libPublic.dll, you must version it carefully and in particular not bump its revision/build/etc. numbers at every compile.

提交回复
热议问题