跳到主要内容
版本:dev

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

CapabilityPackage or toolContinue with
Object SerializationApache.ForyC# object serialization and xlang
Schema and generated modelsfory-compilerFory IDL and Compiler
Fory gRPCgenerated companions plus gRPC .NET dependenciesC# gRPC

Each capability guide owns its exact package declaration and first runnable example.