Skip to the content.

What

This shows the Avro IDL contract first approach using the Apache.Avro library. First we need to define the IDL (*.avdl), then we generate C# classes from it.

Prerequisites

  1. Install Avro dotnet tools for code generation:
    dotnet tool install -g Apache.Avro.Tools
    
  2. Install Java SDK (1.8).

Usage

In PowerShell:

cd Tools
.\gen.ps1

C# classes and *.avpr files are generated from the *.avdl files.