Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: .NET
Expertise: Advanced
Sep 4, 2007

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">
      <dependentAssembly>
        <assemblyIdentity name="KeyvanAssembly"
                          publicKeyToken="de67da767df789acd"
                          culture="en-us" />
        <bindingRedirect oldVersion="1.0.0.1"
                        newVersion="1.0.0.2"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
To redirect any older version to a newer version, specify a "*" as the value of the Srinath MS
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap