Book a Demo

Author Topic: Namespace handling during import of VS projects  (Read 2673 times)

Eiberle

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Namespace handling during import of VS projects
« on: September 25, 2013, 07:25:02 pm »
Hi all,

I wonder if there is a way to import a visual studio project into EA (using MDG Integration) without generating serveral packages for the namespace.

For example, I have a VS project named 'MyProject' with the root namespace A.B.C.D. With MDG Integration I have the option to 'Import and Link' the visual studio project into an existing EA model.
If my structure of the EA model looks like this:
MyModel
  Package: Level 1
    Package: Modules
the package structure of the model looks like this after the import:
MyModel
  Level 1
    Modules
      MyProject
        A
          B
            C
              D

If I add a second project 'AnotherProject' also with the root namespace A.B.C.D, the sturcture will be:
MyModel
  Level 1
    Modules
      MyProject
        A
          B
            C
              D
      AnotherProject
        A
          B
            C
              D

With this, the model looks very ugly and the navigation is complicated.

So I wonder if there is a way to ignore the namespace information of the project, or if this is not possible if there is a way to merge serveral visual studio projects into one package (of course EA will keep track which class was imported from which visual studio project).