Book a Demo

Author Topic: Project and solution files - c#  (Read 2918 times)

Dealogic

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Project and solution files - c#
« on: April 17, 2008, 10:53:10 pm »
I'm new to code generation, and this will hopefully be a simple question to most of you.

I've forward engineered a package, and sub-packages. The folder hierarchy created on my disk is as expected and the source files are as expected.

I now want to create a Visual Studio solution and projects, and add the source files to them.

The problem is that the Visual Studio insists on creating a new sub-folder for a new project... so if I create a project in the folder where the source is I get a duplicate named folder within that folder. If I create the project a level higher, Visual Studio refuses since the folder name that it is trying to create already exists.

Does anybody know a way around this?

Thanks,
Rob.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Project and solution files - c#
« Reply #1 on: April 17, 2008, 11:44:24 pm »
Perhaps with a kludge of sorts.

Copy your EA directory tree to a temporary location.
Let VS create a stub project with the directory names all set up.
Copy your EA directory tree contents to the VS tree, overwriting VS files where the names are the same.

This way you should end up with a single tree. It will also be in the same location as EA used when the code was first generated; this can be very important when you round-trip the code later in EA.

Please let us know if this works.

David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Project and solution files - c#
« Reply #2 on: April 18, 2008, 08:45:31 am »
Sorry, I don't know how to get around Visual Studio being a pain.  But you may find it easier to create a solution and project first, connect to that using MDG Link or Integration and merge.

This way your project is updated with new files as you go.

Dealogic

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Project and solution files - c#
« Reply #3 on: April 22, 2008, 02:47:18 am »
Thanks Simon,

I'll try it that way round.