devxlogo

Changing Assembly Versions During Runtime Using the Web.Config File

Changing Assembly Versions During Runtime Using the Web.Config File

You can change the assembly version quickly by including the bindingRedirect element in the web.config file.

For example, suppose you need to redirect a particular old version dll hit to a new version. The following code shows how to redirect from version 1.0.0.1 to 1.0.0.2:

  <runtime>    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">                                  

To redirect any older version to a newer version, specify a “*” as the value of the

devx-admin

Share the Post: