[MonoDevelop] Own addin: missing menu item after second start of MD

David Nerjes david.hamburg at googlemail.com
Thu May 21 12:24:12 EDT 2009


Hey all,

I'm trying to write an addin for MonoDevelop 2.1, but I get following
warning:

"WARNING: The add-in 'MonoDevelop.Refactoring.CodeFormatting,0.0.1' is
trying to extend '/MonoDevelop/Ide/Commands', but there isn't any compatible
add-in defining this extension point" and
"WARNING: The add-in 'MonoDevelop.Refactoring.CodeFormatting,0.0.1' is
trying to extend '/MonoDevelop/Ide/MainMenu/Edit', but there isn't any
compatible add-in defining this extension point"

After adding the compiled assembly to config/addins  a menu item occurs in
the edit menu, but on the next start the menu item is missing. So I have to
remove and add it again.
Maybe my plugin configuration is wrong, can you help me, please?

Here a snippet of my plugin configuration:

    <Dependencies>
        <Addin id="Core" version="2.1.0"/>
        <Addin id="Core.Gui" version="2.1.0"/>
        <Addin id="Projects" version="2.1.0"/>
        <Addin id="Ide" version="2.1.0"/>
    </Dependencies>

    <!-- commands -->
    <Extension path = "/MonoDevelop/Ide/Commands">
        <Command id =
"MonoDevelop.Refactoring.CodeFormatting.RefactoringCommands.CodeFormatting"
            _label = "Format File"
            _description = "Formats the code of the whole file"
            defaultHandler =
"MonoDevelop.Refactoring.CodeFormatting.CodeFormatting"/>
    </Extension>

    <!-- actions -->
    <Extension path = "/MonoDevelop/Ide/MainMenu/Edit">
        <CommandItem
id="MonoDevelop.Refactoring.CodeFormatting.RefactoringCommands.CodeFormatting"
/>
    </Extension>

Best regards,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20090521/7b643042/attachment.html 


More information about the Monodevelop-list mailing list