Monday, August 09, 2004

VJs Tip Of The Day - August 9th 2004

Changing Reference to different version of external assembly

Consider a scenario when your application is referencing version of "SomeAssembly" in GAC... Now you realize that there are some major bugs in that assembly and you want your assembly to reference the new version of the assembly (say and you do not want to go ahead and recompile your code for that... What would you do... Well here is the answer... You would go and change the configuration file with similar updates to the ones I am writing below...

<assemblybinding xmlns="urn:schemas-microsoft-com:asmv1">
<publisherpolicy apply="no">
<assemblyidentity publickeytoken="whatever" name="SomeAssembly">
<publisherpolicy apply="no">
<bindingredirect newversion="" oldversion="">

PS: You can achieve the same with different methods as well this is just one of them

No comments: