AvroGen.NET.Tool
0.3.12
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global AvroGen.NET.Tool --version 0.3.12
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 AvroGen.NET.Tool --version 0.3.12
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AvroGen.NET.Tool&version=0.3.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package AvroGen.NET.Tool --version 0.3.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AvroGen.NET
MSBuild-based tool for generating C# classes from Avro schemas stored in Schema Registry.
Installation
Install the NuGet package:
dotnet add package AvroGen.NET
Usage
Add the following to your project file:
<ItemGroup>
<AvroGen Include=".">
<Subject>your-schema-subject</Subject>
<Version>1</Version>
<SchemaRegistryUrl>http://localhost:8081</SchemaRegistryUrl>
<OutputPath>$(MSBuildProjectDirectory)/Generated</OutputPath>
</AvroGen>
</ItemGroup>
The classes will be generated during build. You can also generate them manually by running:
dotnet build
Configuration
The AvroGen
item supports the following metadata:
Subject
- Schema Registry subject nameVersion
- Schema version (optional, defaults to latest)SchemaRegistryUrl
- URL of the Schema RegistryOutputPath
- Directory where the generated classes will be placed
License
MIT
Product | Versions 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.