Skip to main content
CSharpToJsonSchema package icon

CSharpToJsonSchema

C# source generator that converts interfaces and methods into JSON Schema definitions for AI function/tool calling (OpenAI, Anthropic, Ollama, Gemini, etc.). No reflection at runtime.

Total Downloads
513.6K
513,598
Published
Mar 20, 2026
Latest stable version

Install

.NET CLI
dotnet add package CSharpToJsonSchema --version 3.10.2-dev.106
Package Manager Console
Install-Package CSharpToJsonSchema -Version 3.10.2-dev.106
PackageReference
<PackageReference Include="CSharpToJsonSchema" Version="3.10.2-dev.106" />

Frameworks

net10.0 .NETStandard2.0

Dependencies

[10.4.0, )
System.Text.Json
.NETStandard2.0
[10.0.5, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.