I'm using Mono 2.10 and MonoDevelop 2.8 on Ubuntu 12.04.
I'm new in Mono. I created a simple application using this tutorial. And now i have 2 questions:
1 - Referencing webkit-sharp.dll. I can find this dll in my system under the path usr\lib\mono\gac\webkit-sharp\1.1.15.0__eaa1d335d2e19745\webkit-sharp.dll
,
but it is not visible for MonoDevelop. I can add it only by specifying the full path to dll.
This situation seems not normal to me. Probably i should install some more packages to make webkit-sharp.dll visible or use another dll?
2 - Tutorial creates gtk# application. Is it possible to use webkit in winforms application? If yes, how it can be done? I need to port existing winforms app (with embedded webkit) to Mono. If it is possible to create winform app with webkit on Mono - it will save my time.
I'll try to answer both of your queries:
1) You can add the reference to webkit-sharp.dll by right clicking on "references" in the "solutions" area:
Then click on "Edit References":
Then select the ".NET Assembly" tab. Navigate to find "webkit-sharp.dll", and your set as far as references go. In your code of course you will need something like:
using webkit-sharp
2) I wouldn't do that. Not that you can't, but my reasoning here is that MonoDevelop can compile things with winforms, but in terms of designing the GUI stuff, afaik, there is no GUI editor for winforms that works with MonoDevelop. MonoDevelop uses GTK# in the GUI design. (It is not impossible to do what you want, but just not recommended.)
CHEERS!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With