views:

66

answers:

2

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 ?

+2  A: 

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

leppie
Ok so how can I 'connect' an AppDomain to MEF composition ?
Patrice Pezillier
A: 

Ok so how can I 'connect' an AppDomain to MEF composition ?

MEF doesnt provide infrastructure to do that, unfortunately. You'd have to bake your own.

hammett