C# How to redirect assembly loading using application config file

Posted by Adi barda on Stack Overflow See other posts from Stack Overflow or by Adi barda
Published on 2010-05-31T09:58:05Z Indexed on 2010/05/31 10:03 UTC
Read the original article Hit count: 420

Filed under:
|
|
|
|

Hi Guys,
I have an assembly with few versions registered in the GAC. Now, I want one of my clients which uses this assembly (version 1.3) to point to the newest version (1.4) without opening the source and recompiling the client.
I saw an article demonstrating a technique for doing so using the application config file (winform application)

here is the config file content :

<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:asm="urn:schemas-microsoft-com:asm.v1">
<runtime>
<asm:assemblyBinding>

as you can see, there is a binding redirect from version 1.3.0.0 to 1.4.0.0 for assembly named MyFacade.
Now, there's only a Minor issue with this approach. It doesn't work :)
I'm sure it's something with my code.
Any suggestions?
Thanks,
Adi Barda

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms