Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DI Using An External DLL

I have two completely independent web application that each use a shared core dll. For deployment and versioning purposes I'd like to be able to deploy a single copy of the "core" dll for both apps to use. I'd also like to be able to support, if needed, the ability to substitute the core DLL at deployment as an option. In other words, app1 could use core dll version 1, and app2 could use core dll version 2. Is there a DI container that will support resolving implementation classes in a single DLL by path to support these features? IOW, app1 would grab it's implementation classes from c:\corev1\core.dll, and app2 would grab it's implementation classes from c:\corev2\core.dll as a simple example? I need to avoid direct references to core.dll due to our deployment strategy where all applications are independent.

like image 805
codeEmitter Avatar asked Nov 27 '25 10:11

codeEmitter


1 Answers

Sounds like you want pluggability, not necessarily (or in addition to) DI. Take a look at MEF.

like image 83
Phil Sandler Avatar answered Nov 28 '25 22:11

Phil Sandler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!