Using a CodeSmith Project to Generate Anywhere
CodeSmith Generator Project
CodeSmith Generator Projects manage groups of CodeSmith Generator templates and their outputs all in a single CodeSmith Generator Project file. CodeSmith Generator Projects are files that enable you to run an entire generation process at anytime in a simplistic manner from many different environments.
About
A CodeSmith Project file uses a .csp file windows extension, and stores XML metadata about your CodeSmith Project.
See: Anatomy of a Project File
Generation Capabilities
CodeSmith Project files enable the management and execution of a generation process in many environments.
Managing a CodeSmith Project right from Windows Explorer is simple and doesn't require you to use CodeSmith Studio to manage a project. Options are available through the right-click context menu your CodeSmith Project file (.csp).
| |
You can Generate Outputs of a CodeSmith Project in the command line by using the CodeSmith Console application. | |
The tight integration with Visual Studio allows you to fully manage any CodeSmith Project right from Visual Studio. To manage a CodeSmith Project, you can use the Right-Click context menu of a CodeSmith Project file from the Solution Explorer window.
| |
To manage a CodeSmith Project, you can use the Right-Click context menu of a CodeSmith Project file from the CodeSmith's Template Explorer window.   The menu options include:
| |
CodeSmith projects can be manually expected from your MSBuild project file by executing: |