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?
Asked
Active
Viewed 6,460 times
3 Answers
4
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
- 73,608
- 45
- 233
- 342
-
which file do you put this in? – leora Jan 22 '09 at 12:16
-
you can do app.config or machine.config. See http://msdn.microsoft.com/en-us/library/0ash1ksb(v=vs.71).aspx – Joshua Ramirez Dec 28 '11 at 18:16
1
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.

Community
- 1
- 1

Don Kirkby
- 53,582
- 27
- 205
- 286