views:

182

answers:

1

I am using System.Addin to create plugins for a small portion of my application. I have two different plugins at the moment, and they are both detected and initialized correctly. I can even copy & paste the plugin folders that are created and I will see them appear as well.

Everything works great when I'm playing around in the debug and release folders. The problem comes in when I attempt to drop one of the plugins into the plugin folder where the application is installed. The copied plugins in are never detected, even though nothing has changed in the contract, views, or adapters.

I've tried copying and pasting plugins from a different installed version of the software (in which the contract is still identical).

I've found that the only way to make this work is to copy all of the folders relating to the plugin architecture: AddIns AddInSideAdapters AddInViews Contracts HostSideAdapters HostView.dll

I would guess that copying over all of these dlls sort of defeats the purpose of a plugin.

Has anybody else had these problems with the new System.AddIn?

Edit: Plugin was created using the pipeline builder tool

+1  A: 

Have you tried analyzing the addin store cache? Maybe this is the source of the issue. Take a look here for a methods available.

Denis Vuyka