Book a Demo

Author Topic: Namespaces  (Read 3613 times)

timo

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Namespaces
« on: February 23, 2006, 12:29:50 am »
Hello,
I'm evaluating EA and MDG for VS2005, right now.
Now I've encountered a problem concerning namespaces.
We're gonna need multiple namespaces, which will belong to different projects in VS2005.
Merging a package ,which is connected to a VS project, I don't get the namespace in my source, because my connected package itself is a namespace root.

But if I clear the namespace root for this package I'll also lose my connection to the VS project.
Connecting it again, I'll aso get the namespace root - vicious circle.
A solution (maybe not the best) would be to create a subpackage(s) - hence getting my classes with the desired namespaces. But now I'm missing an option to automatically create subfolders in my VS project.

Are there any recommendations on how to handle this?

Btw "Set as Namespace Root"/"Clear Namespace Root" are found for a package in "Code Engineering" and not in "Package Control", as repeatedly mentioned in your docs.


Thanks in advance,
Timo

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Namespaces
« Reply #1 on: February 23, 2006, 01:02:03 pm »
The intended behaviour is to use sub-packages.

There must have been some places in the help that weren't updated when the context menus were changed.  I'm looking into that now.

timo

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Namespaces
« Reply #2 on: February 23, 2006, 10:33:47 pm »
Yeah, but my subpackage-classes are gonna be merged into the VS project's main path.

At least I didn't find a way to set a default path for a subpackage.

Actually, I'm currently writing an add-in to set the genfile attribute of a class element in dependence of the namespace it's in.

PaulH

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Namespaces
« Reply #3 on: March 16, 2006, 01:42:13 am »
I can't find anything in the help files on this - I tried searching on namespace and sub-package; could someone give me a pointer.

Also, if you've written the add-in I'd appreciate a copy as the code sync is fairly useless without it.