Dynamically load a DLL from a specific folder?

后端 未结 5 782

At the moment, I have this code :

var shellViewLibrary = Assembly.LoadFrom(Path.Combine(_DllsPath, _DllShellView));
IEnumerable types = shellView         


        
5条回答
  •  耶瑟儿~
    2021-01-13 18:40

    Check out MEF and Prism. MEF is a dependency injection library that helps with this. You can load all of your dependencies from a specific folder and make dynamically load them.

    Prism is a pattern that leverages dependency injection and works great with MEF to load libraries dynamically

提交回复
热议问题