.Net Assembly Binding Redirect with Differing Public Key Tokens

前端 未结 3 1223
谎友^
谎友^ 2020-12-15 02:19

Is it possible to perform an assembly binding redirect between different versions of a referenced assembly if the public key token is null on the older version and set on th

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-15 02:59

    No, it is not possible. The assemblies need to have the same publicKeyToken.

    The bindingRedirect tag only has the oldVersion and newVersion attributes, so there's no way to tell it about the "null" version anyway.

    But the real reason behind is explained due to the strong name mechanism

提交回复
热议问题