dimomit 0 Posted August 27, 2015 Report Share Posted August 27, 2015 I started with uBot couple days ago. Need to do some bulk operations on douzens of wordpress blogs. I decided to use xmlrpc, but didn't find such bot or plugin. There is http post plugin which I can use to rewrite some xmlrpc methods, but looks like a lot of work. There is already implemented C# library WordPressScharp for this and my idea is to create a plugin that only wraps this implemetation. But still on test stage I have some problems, which I can not solve and need some help. I downloaded WordPressScharp and added it with NuGet in Visual Studio. Follow the steps from plugin tutorial, but change Execute method to read post from my blog. Compiled and added the plugin to uBot, run it and have this error "Could not load file for assembly 'WrodPressSharp...." All dlls are in the folder with myplugin, also I copied them to system32, but still have this error. http://s2.postimg.org/m502uqoed/error.jpg BTW tried to add WrodPressSharp as plugin, of course this didn't help, but can not removed it from plugins now, but it still appears in "Unreviewed Plugins" http://s23.postimg.org/i63mlzxp3/plugin_bug.jpg Quote Link to post Share on other sites
Aymen 385 Posted August 27, 2015 Report Share Posted August 27, 2015 The plugin directory is not the same as the root directory , usually when you are dealing with a dll assembly for a c# application , you would just need to place both dlls together in the root directory , but that doesn't work in this case , so what you need to do is embed the 3rd party Dll in your plugin dll then extract it to a temp folder or main ubot root and then use Assembly.Load ! Regards Quote Link to post Share on other sites
Bot-Factory 602 Posted August 28, 2015 Report Share Posted August 28, 2015 You could also use ilmerge to merge the dll into your main plugin. Dan Quote Link to post Share on other sites
dimomit 0 Posted August 31, 2015 Author Report Share Posted August 31, 2015 Thanks for the answers. I tried both, but Assembly.Load is little overcomplicated for me and I gave up after 3 hours of reading and testing. About ILMerge first I read that it is not suitable for WPF, but decide to try it. There is very user-friendly tool of it https://ilmergegui.codeplex.com/ and after 3 clicks I got the merged dll. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.