I certainly could be wrong here, but I've only done binding redirects for different versions of the same assembly.
Raven.Database.dll and Raven.Database-4.5.dll have the same versions so how can I redirect?
The summary of my issue:
- I must target net40 for my plugin or it will not work when copied to the Plugins directory of a release build server since it has a Raven.Database dependency.
- The rest of my codebase uses 4.5 features
- Unit testing my codebase against an embedded store that registers my plugin is not possible. I have mixed dependencies.
The simplest answer I see is to build analogous net40/net45 versions of my plugin just like Raven knowing that the net40 version is only there to copy to a production server, and the net45 version can be referenced and used by my unit tests.