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.
Install
dotnet add package CSharpToJsonSchema --version 3.10.2-dev.106
Install-Package CSharpToJsonSchema -Version 3.10.2-dev.106
<PackageReference Include="CSharpToJsonSchema" Version="3.10.2-dev.106" />
Frameworks
Dependencies
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.