MetaFac.CG4.CLI 4.0.2

dotnet tool install --global MetaFac.CG4.CLI --version 4.0.2
                    
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 4.0.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MetaFac.CG4.CLI&version=4.0.2
                    
nuke :add-package MetaFac.CG4.CLI --version 4.0.2
                    

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 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 was computed.  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 was computed.  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. 
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
4.0.2 162 6/26/2025
3.2.8 309 6/11/2025
3.2.6 228 3/11/2025
3.2.5 206 3/11/2025
3.2.4 156 2/1/2025
3.2.2 138 12/30/2024
3.2.1 130 12/23/2024
3.1.4 148 12/16/2024
3.1.3 151 12/16/2024
3.1.2-dev 113 12/16/2024
2.10.2 139 11/18/2024
2.9.19 135 11/18/2024
2.9.17 132 11/5/2024
2.9.13 127 11/5/2024
2.9.12 135 9/28/2024
2.9.11 169 8/30/2024
2.9.10 176 8/25/2024
2.9.9 167 8/14/2024
2.9.8 176 8/13/2024
2.9.7-beta 153 8/13/2024
2.8.3 151 7/12/2024
2.8.2 150 7/10/2024
2.7.15 149 6/12/2024
2.7.14 707 5/5/2024
2.7.13 342 3/21/2024
2.7.12 450 3/11/2024
2.7.11 986 2/10/2024
2.7.10 221 2/10/2024
2.7.9 1,157 1/3/2024
2.7.8 235 1/3/2024
2.7.7 258 1/3/2024
2.7.3 1,337 11/18/2023
2.7.2-beta 190 11/18/2023
2.6.8 494 11/5/2023
2.6.7 205 11/5/2023
2.6.6 232 11/4/2023
2.6.4 235 11/3/2023
2.6.2 252 11/1/2023
2.5.2 487 10/21/2023
2.4.6 247 10/21/2023
2.4.3 330 10/18/2023
2.4.2 225 10/17/2023
2.3.3 614 10/2/2023
2.2.13 272 9/25/2023
2.2.8 254 9/24/2023
2.1.17 233 9/23/2023
2.1.13 250 9/10/2023
2.1.10 288 8/29/2023
2.1.8 268 8/28/2023
2.1.7 275 8/26/2023
2.1.4 294 8/25/2023
2.1.3 274 8/24/2023
2.0.2 227 7/16/2023
2.0.1-beta 278 7/16/2023
1.4.13 230 7/16/2023
1.4.10 222 7/9/2023
1.4.6 207 7/8/2023
1.4.5 196 7/8/2023
1.4.4-beta 226 7/7/2023
1.2.26 211 7/3/2023
1.2.25 206 7/3/2023
1.2.22 223 6/21/2023
1.2.19 206 6/20/2023
1.2.18 203 6/18/2023
1.2.17 193 6/18/2023
1.2.5-dev 279 6/9/2023
1.2.3-dev 256 6/7/2023
1.1.6 197 6/5/2023
1.1.5 211 6/4/2023
1.1.4 186 6/4/2023
1.1.3 179 6/2/2023
1.1.2 178 6/2/2023
1.1.1 202 6/2/2023
1.0.3 215 6/2/2023
1.0.2 190 6/1/2023
0.1.73-dev 236 6/1/2023
0.1.69-dev 278 5/28/2023
0.1.68-dev 221 5/28/2023
0.1.62-dev 235 5/26/2023
0.1.58-dev 285 5/25/2023
0.1.57-dev 216 5/25/2023
0.1.52-dev 270 5/24/2023
0.1.50-dev 238 5/24/2023
0.1.49-dev 288 5/23/2023
0.1.48-dev 217 5/23/2023
0.1.47-dev 214 5/23/2023
0.1.38-dev 264 5/20/2023
0.1.37-dev 242 5/20/2023
0.1.25-dev 229 5/15/2023
0.1.24-dev 283 5/15/2023
0.1.14-dev 263 5/10/2023
0.1.2-dev 286 5/7/2023