[MonoDevelop] Subdirectory as a Namespace
Rafael Teixeira
monoman at gmail.com
Mon Dec 3 08:24:48 EST 2007
Hi, your suggestion 2) doesn't work very well for Mono and MonoDevelop
itself, that just use the pattern of having the full namespace "path"
as the name of the subdirectory containing the sources for that
namespace, so it's a quite complex "rule" to derive a namespace.
I would rather to have MD just using a simple rule (for me the
directory name as the guessed namespace), and have the "Move to
Namespace" refactoring implemented, like in Resharper (for VS.NET)
that presents a tree of all the namespaces 'nodes' in the project, and
also allows to create new nodes(namespaces) if needed
My 2 cents,
On Dec 3, 2007 11:10 AM, Federico Di Gregorio <fog at initd.org> wrote:
> That would be extremely useful. I'd use, in priority order:
>
> 1) Namespace inferred from existing files in same directory
> 2) Directory name IF can be considered a sub-namespace (i.e., Foo.Bar
> directory inside Foo generates "Foo.Bar" namespace but Baz.Zot doesn't
> gnerate "Baz.Zot" namespace, just skip to point (3).
> 3) Use default namespace from project.
>
> federico
>
> --
> Federico Di Gregorio http://people.initd.org/fog
> Debian GNU/Linux Developer fog at debian.org
> INIT.D Developer fog at initd.org
> Best friends are often failed lovers. -- Me
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
--
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together with good intentions."
Augusten Burroughs
More information about the Monodevelop-list
mailing list