We are using the Microsoft Unity framework for dependency injection in some new class libraries. The main application is the use of some other corporate libraries (Common and Logging) that expect Unity v2.0.414, but we implemented our libraries with Unity v2.1.515.
To get around the version differences, I created the app.Config application for the main application and put the bindingRedirect entry in the configuration file, and it works fine. However, we just found out that the application has never used app.config at this point, and mgmt prefers it that way.
. Is it possible to programmatically implement assembly redirection (i.e. in code)? Thanks!
source share