Setup for Visual Studio
.net Core
Install nuget package KY.Generator.CLI.Core.Standalone
All dependencies are included. At least .net Core 2.0 is required
For lower framework version please create an issue and we will try to support your version
Add an generator.json configuration file (see Wiki)
and add an Pre-build event
dotnet "%USERPROFILE%\.nuget\packages\ky.generator.cli.core.standalone\2.5.0\tools\KY.Generator.dll" "$(ProjectDir)generator.json" "$(SolutionDir)ClientApp\src\app"
.net Framework
Install nuget package KY.Generator.CLI.Standalone
All dependencies are included. At least .net Framework 4.6 is required
For lower framework version please create an issue and we will try to support your version
Add an generator.json configuration file (see Wiki)
and add an Pre-build event
"$(SolutionDir)packages\ky.generator.cli.standalone.2.5.0\tools\KY.Generator.exe" "$(ProjectDir)generator.json" "$(SolutionDir)ClientApp\src\app"
"<path-to-KY.Generator.exe>" "<path-to-configuration-file>" "<output-path>"
.net Standard
Install nuget package KY.Generator.CLI.Standalone
All dependencies are included. At least .net Standard 2.0 is required
For lower framework version please create an issue and we will try to support your version
Add an generator.json configuration file (see Wiki)
and add an Pre-build event
"%USERPROFILE%\.nuget\packages\ky.generator.cli.standalone\2.5.0\tools\KY.Generator.exe" "$(ProjectDir)generator.json" "$(SolutionDir)ClientApp\src\app"
Setup for Console/Powershell
Download KY.Generator.exe from Releases
Run with configuration file
Use an .json configuration file (see Wiki)
and run in cmd:
KY.Generator configuration.json Output
KY.Generator <path-to-configuration-file> <output-path>
Run a command
Run a command (see Wiki)
KY.Generator.exe reflection -assembly=KY.Generator.Examples.Reflection.dll -name=ExampleType -namespace=KY.Generator.Examples.Reflection -relativePath=Output -language=TypeScript
More Informations
For complete overview see our Wiki