I'm authoring a Visual Studio extension and I want to [Export] a different implementation of a given interface based on which Visual Studio version is running - for instance, one implementation for Visual Studio 2010 and 2012 and a different one for Visual Studio 2013 and Visual Studio "14".
I realize I could simply deploy a different DLL for each Visual Studio version, but I'm wondering if there's a way to avoid that - shipping the same DLL and the same vsixmanifest, but having my extension dynamically [Export] the correct version of the interface.
What is the most eloquent way to do this?