Version control and generated code

Posts   
 
    
Barry
User
Posts: 232
Joined: 17-Aug-2005
# Posted on: 16-Mar-2006 09:31:19   

I'm confused how to work with version control and LLBLGen, we are using Visual SourceSafe to manager source files, when I generate files from LLBLGEn, I check out the whole project and all included files, and then start generation. However, I think it is not a good practice, and it is impossible to check out the whole project in a team development environment. rage

Can anyone share your experience how you handle the files when you generate files from LLBLGen?

Thank you very much!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 16-Mar-2006 10:22:59   

If you're not adding custom code to the generated code, why check it into sourcecontrol? You just need the .lgp file in sourcecontrol or other versioning system and that's it.

As with all code generation based material or other large project changing systems: it is best if these actions are scheduled. So if someone decides to generate the code again, it should be done in such a way that the other project members aren't affected by it. So either add the generated code to a separate solution of which you reference the compiled form in your own code, or make sure a single person generates code at a given moment.

The reason for this is that you then avoid having to solve merge conflicts when multple persons try to alter the same file(s).

Frans Bouma | Lead developer LLBLGen Pro