Search code examples
c#mefcomposition

How can I unload a dll in order to delete it after a MEF recomposition?


  1. With MEF, I compose my DLL

  2. I work with my DLL

  3. I recompose without this DLL

  4. I want to delete it // => it doesn't work

How can I unload a dll in order to delete it after a MEF recomposition in which this dll is not composed ?


Solution

  • You can not unload a DLL/assembly. Only an AppDomain.