mihaifm / HIBPOfflineCheck

Keepass plugin that performs offline and online checks against HaveIBeenPwned passwords
Other
317 stars 17 forks source link

build errors #23

Closed Mrxx99 closed 5 years ago

Mrxx99 commented 5 years ago

In HIBPOfflineCheckExt.cs at the following method

    public override ToolStripMenuItem GetMenuItem(PluginMenuType t)
    {
        if (t == PluginMenuType.Main)
        {
            ToolStripMenuItem tsMenuItem = new ToolStripMenuItem("HIBP Offline Check...");
            tsMenuItem.Click += new EventHandler(ToolsMenuItemClick);
            return tsMenuItem;
        }

        return null;
    }

I get the following errors:

CS0103 The name 'PluginMenuType' does not exist in the current context CS0246 The type or namespace name 'PluginMenuType' could not be found (are you missing a using directive or an assembly reference?)
CS0115 'HIBPOfflineCheckExt.GetMenuItem(PluginMenuType)': no suitable method found to override

cristianst85 commented 5 years ago

Update your KeePass to version 2.41 (latest).

See KeePass Changelog:

Plugins: added method to provide menu items.

Mrxx99 commented 5 years ago

Yes that seemed to be the problem, still had 1.39 installed. Updated and it does compile now, thanks