CodeSmith uses the GetFileName method to provide a default output filename for the template when it's called from the CodeSmith Generator Console Application. This is also used in CodeSmith Studio as GeneratorĀ as the default file name if you save the output of a template, and anywhere else that CodeSmith needs GeneratorĀ needs to assign a filename to the output of your template. You can override this method in your code when you want to build the default file name based on property input or other factors.
...