in

CodeSmith Community

Your Code. Your Way. Faster!

How do you properyly maintain generated code?

Last post 10-23-2007 4:26 AM by swin. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 11-14-2006 7:18 AM

    How do you properyly maintain generated code?

    Hi, I just recently used the NetTiers architecture in one of our projects. We're using Visual Source Safe for our source control and I just wanted to ask what is the easiest way of maintaing the generated codes. Because right now what I'm doing is regenerate the NetTier layers (Entities, DataAccess, DataAccess.SqlClient) whenever we modify our database, then I would open our solution and over write all the existing classes in the NetTier layers. Is this a good approach? Any other suggestions?

    Thanks,

    Jon
     

    • Post Points: 35
  • 11-15-2006 4:30 PM In reply to

    • madpeter
    • Top 150 Contributor
    • Joined on 03-10-2004
    • Posts 35
    • Points 815

    Re: How do you properyly maintain generated code?

    Hi

     I have been working over the last couple of days to automate this process using MSBuild and the MSBuild Community Tasks Project that have one custom tasks for MSBuild in regard to checkin , checkout, undocheckout etc. So far in our project we can checkout all files from the SourceSafe Repository , run the NetTiers generation and then check those files back in from MSBuild. We have still have some problems in that the Project Files (csproj ) are not being checked back in to Source Safe, however we live in hope that we can solve that problem Tongue Tied If we can get this working well, then I will post the files.

     Peter

    • Post Points: 35
  • 11-16-2006 1:53 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 921
    • Points 34,675

    Re: How do you properyly maintain generated code?

    I'd certainlt be interested in your buikld scripts when you get them working fully - as I currently have to checkin/out manually and VSS is a royal pain in the a$$.

    swin

    -------------------------------------------------
    Member of the .NetTiers team
    -------------------------------------------------
    • Post Points: 5
  • 10-23-2007 4:26 AM In reply to

    • swin
    • Top 10 Contributor
    • Joined on 06-14-2006
    • London, UK
    • Posts 921
    • Points 34,675

    Re: How do you properyly maintain generated code?

     Peter,

     

    Did you ever get your scripts working completely?

    Could you post on here (or send to me).

    Thanks

    swin 

    -------------------------------------------------
    Member of the .NetTiers team
    -------------------------------------------------
    • Post Points: 5
Page 1 of 1 (4 items)
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems