GTK#+ WebKit + Windows

VH-*_*BIL 6 c# windows mono webkit gtk#

我开发了一个GTK#应用程序,它使用webkit-sharp来编辑电子邮件模板.此应用程序适用于Linux,但在Windows中运行时,它不起作用.我在Windows中使用Linux中的webkit-sharp.dll.我得到的错误是:

    System.TypeInitializationException: The type initializer for 'WebKit.WebView' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'webkit-1.0': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
   at WebKit.Download.webkit_download_get_type()
   at GtkSharp.WebkitSharp.ObjectManager.Initialize()
   at WebKit.WebView..cctor()
   --- End of inner exception stack trace ---
   at WebKit.WebView..ctor()
   at MainWindow..ctor()
Run Code Online (Sandbox Code Playgroud)

我猜测webkit-sharp.dll只包装WebKit的本机库.我不知道从哪里得到"webkit-1.0".是否存在特定于Windows for GTK#的webkit-sharp.dll?

Dar*_*bio 0

我也遇到这个问题了...

没有尝试过这个,但是在http://www.webkit.org/building/checkout.html

该网站建议:

  1. 下载 webkit 支持库
  2. 运行 update-webkit 脚本
  3. 从源代码构建 webkit

我认为这需要安装 cygwin。

我只是解释该网站 - 还没有尝试过。