ABForge.Xml
1.0.0-preview.49
This is a prerelease version of ABForge.Xml.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ABForge.Xml --version 1.0.0-preview.49
NuGet\Install-Package ABForge.Xml -Version 1.0.0-preview.49
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="ABForge.Xml" Version="1.0.0-preview.49" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ABForge.Xml" Version="1.0.0-preview.49" />
<PackageReference Include="ABForge.Xml" />
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 ABForge.Xml --version 1.0.0-preview.49
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ABForge.Xml, 1.0.0-preview.49"
#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 ABForge.Xml@1.0.0-preview.49
#: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=ABForge.Xml&version=1.0.0-preview.49&prerelease
#tool nuget:?package=ABForge.Xml&version=1.0.0-preview.49&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ABForge.Xml
ABForge.Xml is a high-performance XML serialization and deserialization library for modern .NET. It is designed from the ground up for Native AOT compatibility and cloud-native workloads.
Features
- 🚀 Native AOT Ready: No reflection-based serialization at runtime.
- 🛠️ Source Generation: Leverages Incremental Source Generators for compile-time safety and speed.
- 📉 Low Allocation: Optimized memory usage with
Span<T>andIBufferWriter<byte>support. - 📦 .NET Aspire Ready: Designed to work seamlessly in distributed environments.
Getting Started
Installation
Install the package via NuGet CLI:
dotnet add package ABForge.Xml
Basic Usage (AOT-Safe)
- Decorate your model with the
[GenerateXmlSerializer]attribute:
using ABForge.Xml;
[GenerateXmlSerializer]
public partial class UserProfile
{
public required string Name { get; set; }
public int Age { get; set; }
}
- Serialize using the generated serializer:
var profile = new UserProfile { Name = "Alexander", Age = 30 };
// Using the automatically generated UserProfileXmlSerializer
byte[] data = XmlConvert.Serialize(profile, new UserProfileXmlSerializer());
Advanced Scenarios
The library supports ReadOnlySpan<byte> for ultra-fast deserialization:
ReadOnlySpan<byte> xmlData = ...;
var profile = XmlConvert.Deserialize(xmlData, new UserProfileXmlSerializer());
Feedback & Contributing
We welcome contributions! Please visit our GitHub repository: https://github.com/alexbocharov/ABForge.Xml
License
All code in this repository is licensed under the MIT License.
| 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 is compatible. 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.
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
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.0.0-preview.57 | 46 | 8/7/2026 |
| 1.0.0-preview.55 | 58 | 7/14/2026 |
| 1.0.0-preview.54 | 68 | 6/26/2026 |
| 1.0.0-preview.53 | 62 | 6/22/2026 |
| 1.0.0-preview.52 | 70 | 6/19/2026 |
| 1.0.0-preview.51 | 63 | 6/15/2026 |
| 1.0.0-preview.50 | 66 | 5/13/2026 |
| 1.0.0-preview.49 | 61 | 5/13/2026 |
| 1.0.0-preview.48 | 67 | 5/13/2026 |
| 1.0.0-preview.47 | 64 | 5/13/2026 |
| 1.0.0-preview.46 | 74 | 5/8/2026 |
| 1.0.0-preview.45 | 55 | 5/7/2026 |
| 1.0.0-preview.44 | 52 | 5/7/2026 |