Assembly reference issue

  • Thread starter Thread starter Shilpa
  • Start date Start date
S

Shilpa

Hi,

I am writing a C# plugin for a third party tool. Multiple versions of
the same tool can be installed on the client machine at any given
time.
Version 6 of this tool is managed code while version 5 is not.
The plugin is built on version 6 of the tool.
So, when the plugin is installed on a machine that has only version 6
of the tool, it works fine. As expected, it doesnt work if only
version 5 is installed.
The problem is, it is not working if both version 5 and 6 are
installed. How can I tell my plugin to use the file from version 6 of
the tool?


Regards,
Shilpa
 
Using App.config and the below entry in the app.config

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AssemblyName.dll" publicKeyToken="4YWWHFSNFNFS"
culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-3.3.0.15" newVersion="3.3.0.15"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
 
Back
Top