Assembly reference issue

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
 
V

VJ

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top