CodeSmith Projects (.csp) - This feature makes automating your code generation process really easy and consistent whether you are working from inside of Visual Studio 2005, MSBuild, Windows Explorer, a command line / batch file, or CodeSmith itself.
You can control the behavior CodeSmith Projects by choosing whether or not to use ActiveGeneration and Generate on Build.