We're using Microsoft's Unity framework for dependency injection in some new class libraries. The main app is using some of the other enterprise libraries (Common and Logging) which are expecting Unity v2.0.414 but we implemented our libraries using Unity v2.1.515.
To get around the version differences I created an app.Config for the main app and placed an bindingRedirect entry into the config file and that has been working great. However we just learned that the app to this point has never used an app.config and mgmt prefers it this way.
So is it possible to programmatically implement an assembly redirect (i.e. in code)? Thanks!