MetaFac.CG4.CLI 4.2.4

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

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.2.5 119 10/22/2026
4.2.4 123 9/28/2026
4.2.3 150 8/23/2026
4.2.1 251 8/7/2026
4.1.6 149 7/27/2026
4.1.5 155 7/20/2026
4.1.3 142 7/11/2026
4.1.2 148 7/11/2026
4.1.1 160 5/28/2026
4.0.9 201 4/9/2026
4.0.8 177 4/8/2026
4.0.2 331 6/26/2025
3.2.8 467 6/11/2025
3.2.6 369 3/11/2025
3.2.5 323 3/11/2025
3.2.4 267 2/1/2025
3.2.2 256 12/30/2024
3.2.1 243 12/23/2024
3.1.4 253 12/16/2024
3.1.3 307 12/16/2024
Loading failed