MetaFac.CG4.CLI 4.0.9

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global MetaFac.CG4.CLI --version 4.0.9
                    
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.9
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=MetaFac.CG4.CLI&version=4.0.9
                    
nuke :add-package MetaFac.CG4.CLI --version 4.0.9
                    

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 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. 
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.1.1 61 5/28/2026
4.0.9 149 4/9/2026
4.0.8 128 4/8/2026
4.0.2 280 6/26/2025
3.2.8 424 6/11/2025
3.2.6 322 3/11/2025
3.2.5 273 3/11/2025
3.2.4 217 2/1/2025
3.2.2 207 12/30/2024
3.2.1 200 12/23/2024
3.1.4 212 12/16/2024
3.1.3 264 12/16/2024
3.1.2-dev 172 12/16/2024
2.10.2 199 11/18/2024
2.9.19 204 11/18/2024
2.9.17 207 11/5/2024
2.9.13 202 11/5/2024
2.9.12 210 9/28/2024
2.9.11 249 8/30/2024
2.9.10 264 8/25/2024
Loading failed