CodeSmith Generator API
CodeSmith Generator exposes the entire operation of its engine through an API. With it, you can compile templates, retrieve errors, create template instances, get the generated source code, fill in template metadata, and render a template's output to a TextWriter, a file or a string, all from your own code in any .NET language.
| Page | Summary |
|---|---|
| Using the Generator SDK | Set up a project, install the SDK license and compile and render a template from code. |
| Generator API reference (online) | Class and member reference for the Generator API, including SchemaExplorer. |
Note
Generator is licensed per developer. If your application runs Generator templates programmatically, each user needs a Generator license. To distribute an application that uses the Generator engine, see the Generator SDK edition.
Offline API reference
To read the API reference offline, download GeneratorAPI.chm.
Windows blocks help files downloaded from the internet, so unblock the file before you open it:
- In File Explorer, right-click
GeneratorAPI.chmand select Properties. - Select Unblock, then click OK.