Got stuck in switching between different versions of shared assemblies, Try this--
Add new app.config file in your project and add the code below--
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="ClassLibrary1" publicKeyToken="5811e25fd7c7921f" culture="neutral"/>
<bindingRedirect oldVersion="1.0.0.1" newVersion="1.0.0.2"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
- We added a runtime tag under it assigned assemblyBinding tag with xml name space to microsoft, it is necessary to get it worked correctly.
- Identify your assembly by its name, public key token(can be found easily when assembly is registered) and culture(Replace all these things with your assembly's identity)
- Now the main task redirect to the version you want to use, oldversion is the version in use while new version is the one you want to switch.(replace the versions accordingly)
- visual studio take care of closing tags, so no need to worry. Now save this file and run your application, it must use your runtime assigned new version's value and use the assembly accordingly.
----For complete example on shared assembly, feel free to ask. I'll write a tutorial.----






