Generated Files

Posts   
 
    
takb
User
Posts: 150
Joined: 12-Mar-2004
# Posted on: 27-May-2004 07:56:00   

When generating code, why are the VS.NET project files not overwritten. I understand that someone might potentially modify their project settings but to me it would seem to be more common that new entities etc are generated. If you don't overwrite the project files then you have to manually add any "new" generated files to your project.

Also, in the 3rd party "Extended entity generator templates for Adapter", you actually have the "overwrite" option turned on which seems at odds to their purpose. Surely these files would be more likely to be modified (this is the point of these files isn't it?!) so overwriting would be the last thing that you want to do.

Any thoughts?

Tristan.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 27-May-2004 19:16:48   

takb wrote:

When generating code, why are the VS.NET project files not overwritten. I understand that someone might potentially modify their project settings but to me it would seem to be more common that new entities etc are generated. If you don't overwrite the project files then you have to manually add any "new" generated files to your project.

This is changed in the beta. It now alters an existing file instead of overwriting it.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 1
Joined: 30-Mar-2005
# Posted on: 30-Mar-2005 23:37:30   

What would be the best way to go around this for now.

I use interfaces quite a bit, extending all entities is a developer consistence issue, and refactoring is a constant here at work so I'm constantly regenerating many many entities.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 31-Mar-2005 12:30:56   

clocksworth wrote:

What would be the best way to go around this for now.

I use interfaces quite a bit, extending all entities is a developer consistence issue, and refactoring is a constant here at work so I'm constantly regenerating many many entities.

If you just want to overwrite files, change the failWhenExistend / alterWhenExistend parameters to false. You'll then get new files.

Frans Bouma | Lead developer LLBLGen Pro