After reading this document you will know how-to download, install and use the CodeSmith Generator SDK in your applications. This document will also demonstrate the most common uses of the CodeSmith Generator API:
- Compiling a template
- Retrieving compile errors
- Creating a new template instance
- Filling in template metadata
- Rendering a template
Download
After logging into your account, visit the following the downloads section to download the latest version of CodeSmith Generator.
...
The above code will compile and run but requires the Stored Procedures template that can be found in the APISample project that was mentioned above. If you have any SDK API questions feel free to contact support.
Info |
---|
In addition to the methods shown in this sample, you may also find the CodeTemplate.RenderToFile and CodeTemplate.RenderToString methods useful; they let you direct the output of your templates directly to a file or to a string variable. |