I'm using MEF
in a plugin based ASP.NET application. Wiring up a File System Watcher
with Container.Refresh()
any new plugin is loaded automatically upon being copied to the plugin folder.
The problem is when I want to delete or replace a loaded plugin. It is locked by w3wp
and cannot be deleted. I read about Shadow Copy
but cannot find a good example or article.