Use a policy or a redirection in the application config file to tell the framework to use the new version as substitute for the old one requested by the plugin.
views:
131answers:
5Where has the common UI come from and how difficult would it be to upgrade?
It would seem to me to be the best approach.
I do not think the .NET Framework (up to 3.5 at least) can actually load two different versions of a single assembly into an application. I believe I read somewhere that 4.0 may have some additional capabilities in that space, but I would not necessarily count on it.
The only way this can work is if the application loading the plugins loads them into separate AppDomains, but I assume that you have no control over the loading application.
To summarise, I think short of upgrading the version of the library that you use for implementing the plugin I do not think you can work around this issue at this point in time.
I answered this here http://stackoverflow.com/questions/440675/compile-error-cs0433-on-pre-compiled-asp-net-2-0-site/932840#932840
you can use the extern and alias keywords in your code, and specify a new (other than the default global) Alias when referening an assembly.
extern alias global2;
using global2::System;
Right, I was thrown off that you were looking for dynamic information from the title as it say's "building".
Have you tried this app.config setting?
<configuration> Element
<runtime> Element
<assemblyBinding> Element for <runtime>
<qualifyAssembly> Element
<qualifyAssembly partialName="PartialAssemblyName"
fullName="FullAssemblyName"/>
How about this one?
<configuration>
<runtime>
<assemblyBinding>
<dependentAssembly>
<bindingRedirect
oldVersion="old assembly version"
newVersion="new assembly version"/>
Assuming you allready tried Assembly::Load, the replacement for Assembly.LoadWithPartialName, both should let you load w/o specifying any version info.
Have you read over Dave Grimes workshop for fusion? It's relly comprehensive and goes into the depths of how to manage the type resolution systems of the CLR. He also has a good security and .net instrumentation workshop to boot.