[MonoDevelop] Refactoring Addin

Michael Hutchinson m.j.hutchinson at gmail.com
Wed Aug 4 02:56:29 EDT 2010


On Wed, Aug 4, 2010 at 2:33 AM, Eric Schaefer
<eric.schaefer at ericschaefer.org> wrote:
> 2010/8/3 Michael Hutchinson <m.j.hutchinson at gmail.com>:
>> Yep, for some reason Mono.Addin always computes addin dependencies as
>> children of the addin's namespace.
>>
>> So you can have either
>> * an addin with no namespace, and dependencies as "MonoDevelop.Core" etc.
>> * an addin with "MonoDevelop" namespace, and dependencies as "Core" etc.
>
> Oh, OK, that makes sense. Since the addin extends MD, it's OK to have
> MonoDevelop as the addin namespace, I guess. That doesn't affect the
> code namespaces.
>
> One thing is weird though. Why does it work on the first run, but not
> on subsequent ones?

No idea, we'd have to ask Lluis (cc'd). FWIW I think the only-relative
namespace handling in Mono.Addins is rather unintuitive and lack of
error reporting of missing dependencies makes it hard to track down
issues.

BTW, have you considered contributing your refactoring into the main
MonoDevelop.Refactoring adding?

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list