4 ms·
So long as the newest version of the assembly is backwards compatible with the previous ones (i.e has same interfaces, etc) - then this is easily solved using
by will_hughes 10y ago
So long as the newest version of the assembly is backwards compatible with the previous ones (i.e has same interfaces, etc) - then this is easily solved using Assembly binding redirection[1] in your .config file.
eg I have JSON.NET 8.0 installed, and a library I'm requires an earlier version then this will do the trick:
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
</dependentAssembly>
Nuget takes care of this for you automatically.
[1] https://msdn.microsoft.com/en-us/library/eftw1fys(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/eftw1fys(v=vs.110)....