@evanolds
Yhanks for assistance. I *found* the problem. The plugin src code is OK. The problem lies in the references to the PDNxxx.dll libs which is found in c:\Programs Files\Paint.Net
So in future if anyone has compile problems do the following:-
1. Load your .slnproject
2. Project->References->add Reference->Browse
then select the folder where you installed Paint.NET and click the pdnlib.dll and PaintDotNet.Data.dll. These are the 2 generally used. But if you are using effects you should also linkup PaintDotNet.Effects.dll. TO be safe I link all the DLLs in PaintDotNet.
You need to do this because every developer has his/her own folder locations. For example, the photoshop plugin request you to add the 2 PDN dll into a subfolder......but if you do the above, then you do not have to worry about future/other plugins 'cos you may end up with a few versions of PDN DLLs in every plugin.
So now all I have to do is edit the project and add the DLL reference and everything will be ok. I just recently installed the 2.70 version and automatically I have the new DLLs in place.
3. Many pluginswill NOT run off the hat. You must do the above. Now all the plugins I downloaded compiles ok.
Thanks evanolds for plugin.