CodeSmith Tools is the code generation tool that we use. It offers an easy way to accomplish this from your Team Foundation Builds. With version 3.2 and newer there is a custom build task included with the Professional edition. ...