C# Setup
Fory C# is published on NuGet as Apache.Fory and requires the .NET 8 SDK or later. The package includes the runtime and source generator for ForyStruct types. Use one compatible Fory release across every peer in an application.
Verify the Toolchain
dotnet --version
Choose a Capability
| Capability | Package or tool | Continue with |
|---|---|---|
| Object Serialization | Apache.Fory | C# object serialization and xlang |
| Schema and generated models | fory-compiler | Fory IDL and Compiler |
| Fory gRPC | generated companions plus gRPC .NET dependencies | C# gRPC |
Each capability guide owns its exact package declaration and first runnable example.