.Net Assembly Binding Redirect with Differing Public Key Tokens

前端 未结 3 1221
谎友^
谎友^ 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 03:08

    It does seem that a binding-redirect can't be used, but in my case I did manage to get around the problem with differing publicKeyTokens by amending the token-value being requested in the referencing DLL:

    Disassemble the dll to IL, change reference, reassemble (and re-sign - which might be an issue if you don't have the keyfile).

    (See my comment on when referencing assemblies, is it possible to insist on a version number but ignore the publickeytoken? (ie accept signed/unsigned) )

提交回复
热议问题