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 207 6/26/2025
3.2.8 356 6/11/2025
3.2.6 263 3/11/2025
3.2.5 231 3/11/2025
3.2.4 180 2/1/2025
3.2.2 161 12/30/2024
3.2.1 152 12/23/2024
3.1.4 170 12/16/2024
3.1.3 202 12/16/2024
3.1.2-dev 143 12/16/2024
2.10.2 161 11/18/2024
2.9.19 165 11/18/2024
2.9.17 162 11/5/2024
2.9.13 158 11/5/2024
2.9.12 169 9/28/2024
2.9.11 204 8/30/2024
2.9.10 210 8/25/2024
2.9.9 189 8/14/2024
2.9.8 207 8/13/2024
2.9.7-beta 189 8/13/2024
2.8.3 185 7/12/2024
2.8.2 194 7/10/2024
2.7.15 181 6/12/2024
2.7.14 737 5/5/2024
2.7.13 378 3/21/2024
2.7.12 480 3/11/2024
2.7.11 1,017 2/10/2024
2.7.10 253 2/10/2024
2.7.9 1,192 1/3/2024
2.7.8 283 1/3/2024
2.7.7 289 1/3/2024
2.7.3 1,365 11/18/2023
2.7.2-beta 228 11/18/2023
2.6.8 508 11/5/2023
2.6.7 231 11/5/2023
2.6.6 260 11/4/2023
2.6.4 245 11/3/2023
2.6.2 280 11/1/2023
2.5.2 512 10/21/2023
2.4.6 272 10/21/2023
2.4.3 344 10/18/2023
2.4.2 240 10/17/2023
2.3.3 641 10/2/2023
2.2.13 286 9/25/2023
2.2.8 280 9/24/2023
2.1.17 250 9/23/2023
2.1.13 274 9/10/2023
2.1.10 326 8/29/2023
2.1.8 283 8/28/2023
2.1.7 304 8/26/2023
2.1.4 322 8/25/2023
2.1.3 290 8/24/2023
2.0.2 270 7/16/2023
2.0.1-beta 306 7/16/2023
1.4.13 259 7/16/2023
1.4.10 242 7/9/2023
1.4.6 235 7/8/2023
1.4.5 228 7/8/2023
1.4.4-beta 243 7/7/2023
1.2.26 239 7/3/2023
1.2.25 235 7/3/2023
1.2.22 261 6/21/2023
1.2.19 249 6/20/2023
1.2.18 232 6/18/2023
1.2.17 221 6/18/2023
1.2.5-dev 327 6/9/2023
1.2.3-dev 299 6/7/2023
1.1.6 223 6/5/2023
1.1.5 256 6/4/2023
1.1.4 230 6/4/2023
1.1.3 215 6/2/2023
1.1.2 202 6/2/2023
1.1.1 243 6/2/2023
1.0.3 230 6/2/2023
1.0.2 224 6/1/2023
0.1.73-dev 277 6/1/2023
0.1.69-dev 301 5/28/2023
0.1.68-dev 257 5/28/2023
0.1.62-dev 271 5/26/2023
0.1.58-dev 321 5/25/2023
0.1.57-dev 254 5/25/2023
0.1.52-dev 309 5/24/2023
0.1.50-dev 286 5/24/2023
0.1.49-dev 324 5/23/2023
0.1.48-dev 243 5/23/2023
0.1.47-dev 274 5/23/2023
0.1.38-dev 289 5/20/2023
0.1.37-dev 278 5/20/2023
0.1.25-dev 265 5/15/2023
0.1.24-dev 330 5/15/2023
0.1.14-dev 290 5/10/2023
0.1.2-dev 327 5/7/2023