[MonoDevelop] Addin not loading automatically?

Noam Gat noamgat at gmail.com
Sat Apr 23 11:51:18 EDT 2011


Hi,

I created an addin along the lines of the sample. I ended up with this XML :

<Addin namespace   = "MonoDevelop"
       id          = "UnityInterpreter"
       name        = "Unity Python Interpreter"
       author      = "Noam Gat"
       copyright   = "MIT/X11"
       url         = "http://www.monodevelop.com"
       description = "Provides a command to run python code in a Unity
Python Interpreter."
       category    = "Unity Extensions"
       version     = "2.0">

    <Dependencies>
        <Addin id="Ide" version="2.0"/>
    </Dependencies>

    <Extension path = "/MonoDevelop/Ide/Commands/Edit">
        <Command id =
"MonoDevelop.UnityInterpreter.UnityInterpreterCommands.RunCode"
        _label = "Execute in Unity"
        _description = "Run Code in Unity Interpreter"
        shortcut = "F3"
              defaultHandler =
"MonoDevelop.UnityInterpreter.RunCodeHandler"  />
    </Extension>

    <Extension path = "/MonoDevelop/Ide/MainMenu/Run">
        <CommandItem
id="MonoDevelop.UnityInterpreter.UnityInterpreterCommands.RunCode" />
    </Extension>
</Addin>

I implemented the classes and all. It works fine, with one problem. Even
though the addin is loaded automatically when MonoDevelop starts, I only see
the command in the run menu if I do :

Tools -> Addin Manager -> Unity Extensions -> Unity Python Interpreter

And then disable it, and then enable it again. After I do that, it works
fine.

It seems like something isn't loading automatically. Does anyone have any
idea what it might be?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20110423/03747fa7/attachment.html 


More information about the Monodevelop-list mailing list