MetaFac.CG4.CLI 3.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global MetaFac.CG4.CLI --version 3.2.1                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local MetaFac.CG4.CLI --version 3.2.1                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MetaFac.CG4.CLI&version=3.2.1                
nuke :add-package MetaFac.CG4.CLI --version 3.2.1                

CG4

Build-Deploy

Define your models in C# code using CG4.Schemas, then run the CLI tool to generate source.

CLI

A Dotnet tool for:

  • extracting metadata from assemblies
  • reading/writing metadada to JSON files
  • generating code from metadata
  • creating generators from templates
  • creating templates from generators

Schemas

Attributes for defining data model objects (schemas) in code.

  • Allows defintion of entities, members, and proxy types.

Models

Helpers to write and read CG4 metadata to/from JSON, and from attributed code.

Generators

C# code generators that use metadata to create POCOs for:

  • freezable classes
  • immutable records
  • polymorphic NewtonSoft.Json DTOs
  • polymorphic System.Text.Json DTOs (.NET 7+)
  • freezable, polymorphic MessagePack DTOs
  • common contracts (interfaces) for all the above.

Runtimes

Runtime support for generated DTOs.

Templates

Testable templates for above generators.

TextProcessing

Bi-directional text processor to convert templates to generators (and back).

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
3.2.4 28 2/1/2025
3.2.2 94 12/30/2024
3.2.1 85 12/23/2024
3.1.4 97 12/16/2024
3.1.3 87 12/16/2024
3.1.2-dev 77 12/16/2024
2.10.2 100 11/18/2024
2.9.19 90 11/18/2024
2.9.17 94 11/5/2024
2.9.13 87 11/5/2024
2.9.12 99 9/28/2024
2.9.11 128 8/30/2024
2.9.10 126 8/25/2024
2.9.9 117 8/14/2024
2.9.8 137 8/13/2024
2.9.7-beta 111 8/13/2024
2.8.3 115 7/12/2024
2.8.2 103 7/10/2024
2.7.15 109 6/12/2024
2.7.14 670 5/5/2024
2.7.13 294 3/21/2024
2.7.12 410 3/11/2024
2.7.11 932 2/10/2024
2.7.10 170 2/10/2024
2.7.9 1,121 1/3/2024
2.7.8 180 1/3/2024
2.7.7 217 1/3/2024
2.7.3 1,318 11/18/2023
2.7.2-beta 155 11/18/2023
2.6.8 473 11/5/2023
2.6.7 170 11/5/2023
2.6.6 210 11/4/2023
2.6.4 218 11/3/2023
2.6.2 232 11/1/2023
2.5.2 463 10/21/2023
2.4.6 225 10/21/2023
2.4.3 302 10/18/2023
2.4.2 200 10/17/2023
2.3.3 590 10/2/2023
2.2.13 248 9/25/2023
2.2.8 230 9/24/2023
2.1.17 203 9/23/2023
2.1.13 215 9/10/2023
2.1.10 225 8/29/2023
2.1.8 232 8/28/2023
2.1.7 235 8/26/2023
2.1.4 254 8/25/2023
2.1.3 232 8/24/2023
2.0.2 162 7/16/2023
2.0.1-beta 228 7/16/2023
1.4.13 170 7/16/2023
1.4.10 176 7/9/2023
1.4.6 158 7/8/2023
1.4.5 151 7/8/2023
1.4.4-beta 177 7/7/2023
1.2.26 164 7/3/2023
1.2.25 158 7/3/2023
1.2.22 155 6/21/2023
1.2.19 145 6/20/2023
1.2.18 155 6/18/2023
1.2.17 144 6/18/2023
1.2.5-dev 211 6/9/2023
1.2.3-dev 188 6/7/2023
1.1.6 136 6/5/2023
1.1.5 142 6/4/2023
1.1.4 115 6/4/2023
1.1.3 126 6/2/2023
1.1.2 121 6/2/2023
1.1.1 133 6/2/2023
1.0.3 163 6/2/2023
1.0.2 130 6/1/2023
0.1.73-dev 170 6/1/2023
0.1.69-dev 223 5/28/2023
0.1.68-dev 168 5/28/2023
0.1.62-dev 175 5/26/2023
0.1.58-dev 226 5/25/2023
0.1.57-dev 161 5/25/2023
0.1.52-dev 215 5/24/2023
0.1.50-dev 165 5/24/2023
0.1.49-dev 232 5/23/2023
0.1.48-dev 164 5/23/2023
0.1.47-dev 153 5/23/2023
0.1.38-dev 207 5/20/2023
0.1.37-dev 182 5/20/2023
0.1.25-dev 175 5/15/2023
0.1.24-dev 194 5/15/2023
0.1.14-dev 198 5/10/2023
0.1.2-dev 230 5/7/2023