![]() |
VOOZH | about |
dotnet tool install --global Bonsai.Sgen --version 0.5.0
dotnet new tool-manifestif you are setting up this repo
dotnet tool install --local Bonsai.Sgen --version 0.5.0
#tool dotnet:?package=Bonsai.Sgen&version=0.5.0
nuke :add-package Bonsai.Sgen --version 0.5.0
Tool for automatically generating YAML / JSON serialization classes and constructor operators from schema files.
Navigate to the Bonsai.Sgen NuGet tool package
Click .NET CLI (Local) and copy the two suggested commands. E.g.:
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Bonsai.Sgen
To view the tool help reference documentation, run:
dotnet bonsai.sgen --help
To generate YAML serialization classes from a schema file:
dotnet bonsai.sgen --schema schema.json --serializer YamlDotNet
To generate JSON serialization classes from a schema file:
dotnet bonsai.sgen --schema schema.json --serializer NewtonsoftJson
Copy the generated class file to your project Extensions folder.
Add the necessary package references to your Extensions.csproj file. For example:
<ItemGroup>
<PackageReference Include="Bonsai.Core" Version="2.8.5" />
<PackageReference Include="YamlDotNet" Version="13.7.1" />
</ItemGroup>
To restore the tool at any point, run:
dotnet tool restore
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.0 | 615 | 3/25/2026 |
| 0.8.0 | 133 | 3/20/2026 |
| 0.7.2 | 926 | 11/21/2025 |
| 0.7.1 | 248 | 11/6/2025 |
| 0.7.0 | 260 | 10/30/2025 |
| 0.6.1 | 886 | 8/3/2025 |
| 0.6.0 | 241 | 7/28/2025 |
| 0.5.0 | 293 | 6/1/2025 |
| 0.4.0 | 590 | 6/14/2024 |
| 0.3.0 | 1,300 | 1/25/2024 |
| 0.3.0-build230404 | 216 | 1/15/2024 |
| 0.2.0 | 307 | 1/15/2024 |
| 0.1.0 | 422 | 10/7/2023 |
| 0.1.0-build231006 | 307 | 10/6/2023 |
| 0.1.0-build230726 | 393 | 7/26/2023 |
| 0.1.0-build230718 | 378 | 7/17/2023 |