Generate code from your template

Your template is ready to use.

  1. Save AssemblyInfo.cst.
  2. Double-click the file in File Explorer. CodeSmith Generator opens the template's property sheet.
  3. Enter values for the template's properties.
  4. Click Generate.

Generator builds a new AssemblyInfo.cs file instantly and shows it in the output window, where you can save or copy it.

What you've learned

This was a simple "Hello World" template. How much time it saves depends on how many new projects you create. But the same technique works for a wide range of code:

  1. Start with the output you want to build.
  2. Identify the static content.
  3. Make the calculated content dynamic.
  4. Add properties for the content the user supplies.

You can use it to build web services, data access layers, standard user interfaces and anything else you can imagine. Generator replaces repetitive hand-coding with code generation.

Next steps