Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
<%@ CodeTemplate Language="C#" TargetLanguage="C#" Description="Create an AssemblyInfo.cs file." %>

The CodeTemplate directive sample above defines three attributes (Language, TargetLanguage and Description).

  • The Language attribute specifies the scripting language that will be used within the template itself (C#, Visual Basic, JScript).
  • The TargetLanguage attribute specifies the language of the generated output.
  • The Description attribute gives the purpose of the template.

With this single line of code saved as a file named AssemblyInfo.cst, you've got a CodeSmith Generator template. But it doesn't do anything yet.

...