tags:

views:

41

answers:

1

Right now everything falls in this namespace:

XXX.YYY.(varies)

It's an open source project and I'm refactoring it to suit our needs. That part works fine, but I need to add another namespace after YYY for organizational reasons. So every single class will read XXX.YYY.ZZZ.(varies) How can I do that?

+5  A: 

In your code file, just change it:

namespace XXX.YYY.ZZZ
{
    /* your types that go in that namespace */
}

(typically still only one class / etc per file)

If you are moving all of them, then find+replace may help (ctrl+h)

You should also be able to use the "class view" to help track them: View => Class View, or ctrl+w,c

Marc Gravell
Ctrl+h worked, I didn't want to break any code but I'll take it.
In addition, you can create folders to organize your namespaces if you want to. When you create a folders, VS puts the classes in that folder in different namespaces, by default. You can always change it in the code, of course.
Javier Morillo