Export Code Generation Templates

Exports T4 code generation templates to a specified directory. These templates can be used with Visual Studio, Rider, Visual Studio Code with plugin, dotnet tool or other tools to generate source code.

Command

# Windows
Charon.exe GENERATE TEMPLATES --outputDirectory "c:\templates"

Parameters

--outputDirectory

Specifies the path where the templates should be written. It can be either an absolute or relative path to a directory. The specified directory must already be present.

# Windows
--outputDirectory "c:\templates"

# Linux or OSX
--outputDirectory "~/templates"

# Relative path
--outputDirectory "./templates"