MetaFac.CG4.CLI 2.0.2

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

CG4

Build Status

Attributes

C# attributes for defining CG4 models in code.

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

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:

  • ordinary classes
  • polymorphic JSON DTOs (NewtonSoft)
  • polymorphic MessagePack DTOs
  • records
  • 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).

SourceGenerator (dev)

Experimental Roslyn-based source generator

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.1.1 77 5/28/2026
4.0.9 149 4/9/2026
4.0.8 129 4/8/2026
4.0.2 281 6/26/2025
3.2.8 424 6/11/2025
3.2.6 325 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 202 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 250 8/30/2024
2.0.2 310 7/16/2023
Loading failed