OneYaml.Compat.SharpYaml 1.2.1

dotnet add package OneYaml.Compat.SharpYaml --version 1.2.1
                    
NuGet\Install-Package OneYaml.Compat.SharpYaml -Version 1.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OneYaml.Compat.SharpYaml" Version="1.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OneYaml.Compat.SharpYaml" Version="1.2.1" />
                    
Directory.Packages.props
<PackageReference Include="OneYaml.Compat.SharpYaml" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OneYaml.Compat.SharpYaml --version 1.2.1
                    
#r "nuget: OneYaml.Compat.SharpYaml, 1.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OneYaml.Compat.SharpYaml@1.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OneYaml.Compat.SharpYaml&version=1.2.1
                    
Install as a Cake Addin
#tool nuget:?package=OneYaml.Compat.SharpYaml&version=1.2.1
                    
Install as a Cake Tool

OneYaml.Compat.SharpYaml

A compatibility adapter for code written against the SharpYaml 3 serializer, running on OneYaml.

It covers a subset of SharpYaml's API, tested against SharpYaml 3.14.0; code that takes or returns SharpYaml types from other libraries still needs SharpYaml itself. Every difference and every part not covered is listed in the compatibility notes.

It provides SharpYaml's YamlSerializer, YamlSerializerOptions, its attributes and exceptions under the OneYaml.Compat.SharpYaml namespace. For the API the migration guide lists, changing the package and the using lines keeps your call sites:

using SharpYaml;                ->  using OneYaml.Compat.SharpYaml;
using SharpYaml.Serialization;  ->  using OneYaml.Compat.SharpYaml.Serialization;

Custom converters, polymorphism, extension data, generated contexts and SharpYaml's document model are not provided; code that uses them does not compile, so the gap shows at build time. Some options fail at first use instead, and some behaviour differs on purpose; each is listed with a repro. It reads with OneYaml's default limits. YamlSerializerOptions.Limits is an addition that SharpYaml does not have: set it to OneYaml.YamlLimits.Untrusted for input you do not control.

New code should use the OneYaml package. Report problems at GitHub issues. Licensed under MIT or Apache-2.0, at your option.

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 is compatible.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.1 87 10/18/2026
1.2.0 87 10/18/2026
1.1.1 153 10/17/2026
1.1.0 105 10/17/2026
1.0.0 137 10/16/2026