Sharing templates/settings between developers

Posts   
 
    
spatches
User
Posts: 8
Joined: 20-Feb-2007
# Posted on: 30-Jul-2007 19:29:58   

I'm having trouble finding a "best practice" for sharing code templates and settings between developers on the same project using LLBLGen 2.0. The .LGP file is under source control, so people can share it. However, we also need to share the following things:

  1. Code templates (e.g. the base SelfServicing templates with the timestamps removed -- only want to know which files REALLY changed after regenerating the source code!!!)

  2. Settings that appear when you choose Generate (e.g. SelfServicing, .Net version, which tasks, etc)

If there's an easy way to share the above under source control, please let me know.

Jessynoo avatar
Jessynoo
Support Team
Posts: 296
Joined: 19-Aug-2004
# Posted on: 31-Jul-2007 01:14:17   

Hi,

there is a "TDLEmitDatesInOutputFile" setting in the project's property, which may be what you're looking for.

Also, the last generation properties are saved into the lgp file so that should not be a problem.

Now, you should not be talking of "templates" if you mean generated code, because the file templates are specifically what the code is generated from, and what you will be updating if you wish to tweak what the generated code looks like.

The generator engine is documented with source code available in the download section if you wish to learn more about that process. Look for the SDK.

Cheers

spatches
User
Posts: 8
Joined: 20-Feb-2007
# Posted on: 31-Jul-2007 16:56:05   

1 - I really did mean templates. I wasn't aware of this setting. But the question remains regarding other template customizations.

2 - I believe the scenario was something like this: if you need something that's not in the default presets (e.g. the Predicate Factories) you have to change your settings, and then this new setting is not carried through to any other developer who regenerates the code based on the same LGP file.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 01-Aug-2007 11:05:50   

As far as I know, all these project settings should be saved in the project file (*.lgp)