0

I have a folder c:\myplugins. How do I tell Unity to scan and register all the *.dll that is of type IMyPlugins.

Similar to how StructureMap has a scanning method where you can provider the folder location.

Arcadian
  • 4,312
  • 12
  • 64
  • 107
  • This question was already asked: http://stackoverflow.com/questions/1769056 and http://stackoverflow.com/questions/9595578/ – foliveira Mar 26 '12 at 18:31

1 Answers1

2

If you are aiming for a plugin type architecture, I would very much advise using MEF for that functionality in your application. This is exactly the kind of task MEF was developed for. There is also nothing to stop you from using MEF and Unity side by side. Unity for components known at compile time and MEF for pulling in runtime components.

Lukazoid
  • 19,016
  • 3
  • 62
  • 85