如何将 Firefox 扩展添加到 GeckoFX?

How do i add Firefox extensions to GeckoFX?

我一整天都在谷歌上搜索有关如何在 "Geckofx" ( vb.net ) 中使用 Firefox 扩展的教程,但找不到任何内容。 有人有想法吗?

请在 Geckofx 存储库中查看此票证。我相信这是您能得到的最接近的答案:https://bitbucket.org/geckofx/geckofx-29.0/issues/211/firefox-extension-in-geckofx

这似乎与 Geckofx 中的错误有关。这是该页面上最有帮助的评论:

First, add the location where the extension is deployed using

Xpcom.ComponentRegistrar.AutoRegister():
void RegisterExtensionDir(string dir)
{
    Console.WriteLine("Registering binary extension directory:  " + dir);
    var chromeDir = (nsIFile)Xpcom.NewNativeLocalFile(dir);
    var chromeFile = chromeDir.Clone();
    chromeFile.Append(new nsAString("chrome.manifest"));
    Xpcom.ComponentRegistrar.AutoRegister(chromeFile);
}

Second, do NOT use the ABI flag in the extension's chrome.manifest. So instead of

binary-component components/GeckoScraper.dll ABI=WINNT_x86-msvc

I used

binary-component components/GeckoScraper.dll