WPFToolkit modified with different public key token

Aug 2, 2010 at 5:34 AM

I had to modify the WPFToolkit.dll to add watermark for datepicker. after the modification, to use the dll in my project I had to provide a strong name to this dll thus overwriting the public key token of the dll to  5b20d1040a4ab839.

however the public key token of all the binaries supplied by microsoft has a public key token  31bf3856ad364e35

I also use Component one dll, which uses the old version of the dll with original public key token  31bf3856ad364e35 which will conflict with the new modified version of the dll with public key token 5b20d1040a4ab839

I can use the folowing probing solution only if the public key token of the Old version of dll and the modified version dll is same i.e(31bf3856ad364e35)

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <assemblyIdentity name="WPFToolkit" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="3.5.31016.1" newVersion="3.5.40128.1"/>

Please some one let me know

1) How can I modify the wpftoolkit dll and still retain the same public keytoken


2) How can I probe the compile to use a dll with new public key token


Anand Kumar B