Plugin not loading

38 views
Skip to first unread message

brian...@gmail.com

unread,
Nov 10, 2015, 9:04:25 PM11/10/15
to pgina-devel
This is a noob question but I am stuck and I am sure simple answer!
I am working on creating a plugin and can not get it to load.
As a simple test I created the HelloPlugin from http://pgina.org/docs/v3.1/plugins.html.
I copied the compiled pGina.Plugin.HelloPlugin.dll to the "c:\Program Files\pGina\Plugins\Contrib"  (also tried core).
When I open the Configuration UI it does not list the HelloPlugin.
I also checked the log file and it lists all the plugins in the plugins directory during load (and confirms plugin directory is as expected).

Someone give me the simple answer please ?!?  I am not sure what to do next.

brian...@gmail.com

unread,
Nov 10, 2015, 9:31:02 PM11/10/15
to pgina-devel
It's always the little details LOL.
I did a debug session with src for the Configuration UI and realized the plugin class I created wasn't marked as Public.
So that explains why it wouldn't load - first thing it does is check if it is a public class.  Duh.

// Make sure its a public class
if (!type.IsClass || type.IsNotPublic) 
               continue;





Reply all
Reply to author
Forward
0 new messages