Bonsai.Sgen 0.9.0

Prefix Reserved
dotnet tool install --global Bonsai.Sgen --version 0.9.0
                    
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 Bonsai.Sgen --version 0.9.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Bonsai.Sgen&version=0.9.0
                    
nuke :add-package Bonsai.Sgen --version 0.9.0
                    

Serializer Generator Tool

Bonsai.Sgen is a code generator tool for the Bonsai programming language. It leverages JSON Schema as a standard to specify record data types, and automatically generates operators to create and manipulate these objects. It builds on top of NJsonSchema by providing further customization of the generated code as well as Bonsai-specific features.

Getting Started

  1. Install Bonsai.Sgen as a local tool:

    dotnet new tool-manifest
    
    dotnet tool install --local Bonsai.Sgen
    
  2. Generate YAML or JSON serialization classes from a schema file to your project Extensions folder:

    dotnet bonsai.sgen schema.json -o Extensions --serializer yaml
    
    dotnet bonsai.sgen schema.json -o Extensions --serializer json
    
  3. Add the necessary package references to your Extensions.csproj file:

    <PackageReference Include="YamlDotNet" Version="16.3.0" />
    
    <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
    

Make sure the above packages are installed in your Bonsai environment as well. YamlDotNet should be built-in, whereas Newtonsoft.Json may have to be installed. To find Newtonsoft.Json, go to the package manager, click "Show advanced", and it will usually be the first package in the list.

Additional Documentation

For additional documentation and examples, refer to the Sgen documentation pages.

Feedback & Contributing

Bonsai.Sgen is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

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
0.9.0 582 3/25/2026
0.8.0 129 3/20/2026
0.7.2 923 11/21/2025
0.7.1 243 11/6/2025
0.7.0 256 10/30/2025
0.6.1 880 8/3/2025
0.6.0 235 7/28/2025
0.5.0 288 6/1/2025
0.4.0 586 6/14/2024
0.3.0 1,295 1/25/2024
0.3.0-build230404 215 1/15/2024
0.2.0 304 1/15/2024
0.1.0 421 10/7/2023
0.1.0-build231006 306 10/6/2023
0.1.0-build230726 392 7/26/2023
0.1.0-build230718 376 7/17/2023