views:

165

answers:

3
+1  Q: 

Binding redirects

Where is the best place to find information on binding redirects? or maybe just a basic explanation of where you put these redirects within a project?

A: 

Why not start from the beginning?

after understood what it does, you will end up with something like:

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="myAssembly"
                              publicKeyToken="32ab4ba45e0a69a1"
                              culture="neutral" />
            <bindingRedirect oldVersion="1.0.0.0"
                             newVersion="2.0.0.0"/>
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>
balexandre
which file do you put this in?
ooo
+1  A: 

Where you put it can only be configuration. Find details here.

HTH, Kent

Kent Boogaart
same link that I posted :/
balexandre
A: 

There are several configuration files that can include binding redirects. Another option besides the configuration files is to use the AppDomain.AssemblyResolve event to decide on redirects at run time. I've included some sample code in this answer.

Don Kirkby