Hello All,
I have a plug in question. I am using the sample plugin template you have provided above. For a first test, I just complied it and added it to the plugins directory (inside a sub directory called SamplePlugin). I added an icon from a different plugin just for testing.
VoxCommando can see the new plugin called SamplePluging, and let's me enable it (it is enabled by default), however when loading the plugin I get an error. "Error Loading Plugin:" {path to plugin}
From the Log:
2/12/2016 11:49:11 AM 131 found dll: C:\VoxCommndo\Plugins\SamplePlugin\PluginInterface.dll
2/12/2016 11:49:11 AM 133 Plugin not selected in options: PluginInterface
2/12/2016 11:49:11 AM 133 found dll: C:\VoxCommndo\Plugins\SamplePlugin\SamplePlugin.dll
2/12/2016 11:49:11 AM 135 Loading: SamplePlugin
2/12/2016 11:49:11 AM 141 Error loading plugin: C:\VoxCommndo\Plugins\SamplePlugin\SamplePlugin.dll
System.InvalidCastException: Unable to cast object of type 'vcPlugin.Plugin' to type 'PluginInterface.IPlugin'.
at VoxCommando.PluginServices.AddPlugin(String FileName)
2/12/2016 11:49:11 AM 141 [error] Error loading plugin: C:\VoxCommndo\Plugins\SamplePlugin\SamplePlugin.dll
This should be a fairly easy error to trace, but I cannot see where the cast is taking place. I tried this in framework 3.5 and 4.0
the other files in the plugins\SamplePlugin folder are:
icon.png
pluginInterface.dll
SamplePlugin.dll
SamplePlugin.pdb
test
Any ideas or help would be appreciated.