KY.Generator.CLI
10.1.0
Prefix Reserved
See the version list below for details.
dotnet tool install --global KY.Generator.CLI --version 10.1.0
dotnet new tool-manifest
dotnet tool install --local KY.Generator.CLI --version 10.1.0
#tool dotnet:?package=KY.Generator.CLI&version=10.1.0
nuke :add-package KY.Generator.CLI --version 10.1.0
KY.Generator 
Documentation | Getting Started | Supported Platforms | Need Help?
Setup for Visual Studio
via Annotations
Pros: Easy to use, rapid to implement
Cons: Attributes are part of the build, annotation assemblies have to be published and loaded when reflection is used
Install nuget package KY.Generator
Decorate a class with one of our Generate attributes
using KY.Generator;
...
[Generate("Output")]
internal class TypeToRead
{
public string Property { get; set; }
}
See the complete showcase
See documentation for more details
via Fluent API
Pros: generator code is completely separated and is not published, more actions are available than via annotations
Cons: the initial setup is not so easy as with annotations
Create a new class library project
Install nuget package KY.Generator.Fluent
Derive a class from GeneratorFluentMain, override the execute method and use the Read method
public class GeneratorMain : GeneratorFluentMain
{
public override void Execute()
{
this.Read()
.FromType<Types>()
.Write()
.AngularModels().OutputPath("Output/Models").SkipHeader()
.AngularServices().OutputPath("Output/Services").SkipHeader();
}
}
See the complete showcase
See documentation for more details
Setup for Console/PowerShell
Install the .NET global tool
dotnet tool install -g KY.Generator.CLI
Run a command
ky-generator reflection -assembly=KY.Generator.Examples.Reflection.dll -name=ExampleType -namespace=KY.Generator.Examples.Reflection -relativePath=Output -language=TypeScript
The tool ships every built-in module, so nothing has to be installed next to it. It requires the .NET 8, 9 or 10 runtime; an assembly built for one of those is read by a matching process, whichever of them the tool itself was started on.
See documentation for more details
Read More
For a complete overview see our documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0 | 82 | 11/20/2026 |
| 10.3.0 | 126 | 10/27/2026 |
| 10.2.2 | 106 | 10/25/2026 |
| 10.2.1 | 180 | 9/12/2026 |
| 10.2.0 | 210 | 8/22/2026 |
| 10.1.2 | 319 | 8/17/2026 |
| 10.1.1 | 156 | 8/15/2026 |
| 10.1.0 | 156 | 8/13/2026 |
| 10.0.0 | 163 | 7/31/2026 |
| 10.0.0-preview.36 | 608 | 12/15/2025 |
| 10.0.0-preview.35 | 480 | 11/29/2025 |
| 10.0.0-preview.17 | 593 | 10/16/2025 |
| 10.0.0-preview.15 | 1,040 | 7/23/2025 |
| 9.0.0 | 746 | 8/1/2025 |
| 8.8.6 | 914 | 2/16/2024 |
| 8.8.5 | 825 | 2/16/2024 |
| 8.8.4 | 822 | 2/13/2024 |
| 8.8.3 | 810 | 2/10/2024 |
| 8.8.2 | 831 | 2/9/2024 |
| 8.8.1 | 898 | 12/8/2023 |