Hlibz.XmlDocs
1.0.0-preview.1
dotnet add package Hlibz.XmlDocs --version 1.0.0-preview.1
NuGet\Install-Package Hlibz.XmlDocs -Version 1.0.0-preview.1
<PackageReference Include="Hlibz.XmlDocs" Version="1.0.0-preview.1" />
<PackageVersion Include="Hlibz.XmlDocs" Version="1.0.0-preview.1" />
<PackageReference Include="Hlibz.XmlDocs" />
paket add Hlibz.XmlDocs --version 1.0.0-preview.1
#r "nuget: Hlibz.XmlDocs, 1.0.0-preview.1"
#:package Hlibz.XmlDocs@1.0.0-preview.1
#addin nuget:?package=Hlibz.XmlDocs&version=1.0.0-preview.1&prerelease
#tool nuget:?package=Hlibz.XmlDocs&version=1.0.0-preview.1&prerelease
![]()
Hlibz.XmlDocs
Your XML documentation comments, read at runtime: the <summary> of a type, property or enum
value from the XML file next to its assembly, flattened to one line, ready to be an API
description. No dependencies.
using Hlibz.XmlDocs;
XmlDocumentation.TypeSummary(typeof(City));
XmlDocumentation.PropertySummary(typeof(City).GetProperty("Name")!);
XmlDocumentation.EnumValueSummary(typeof(Side), "North");
AccessorWording.Strip("Gets or sets the city's name."); // "The city's name."
- A positional record's property reads the record's
<param>; a closed generic type its definition's summary;<remarks>are never read. <c>,langwordandparamrefbecome Markdown code; a<see cref>the name it refers to (City,City.Name,Page, notPage`1).- Single-file and AOT safe. Set
GenerateDocumentationFilein each project, andCopyDocumentationFilesFromPackagesto describe types from packages.
Used by Hlibz.XmlDocs.AI (MCP tool and AI function schemas) and Hlibz.OpenApi.AspNetCore (OpenAPI documents), so both describe a property in the same words.
Targets .NET 11.
Full documentation: github.com/hlib-zinchenko/Hlibz.XmlDocs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Hlibz.XmlDocs:
| Package | Downloads |
|---|---|
|
Hlibz.OpenApi.AspNetCore
Transformers for Microsoft.AspNetCore.OpenApi: XML summaries as descriptions, read at runtime so internal types and NuGet packages are covered (AddXmlDocumentation), custom validation attributes that describe themselves in the schema (IOpenApiRule), strongly-typed IDs published as their inner value (inline, or kept as components), the 400 that AddValidation() answers with on exactly the operations it can come from (AddValidationProblems), a bearer (or any) security scheme marked on exactly the endpoints that require authorization, StyleCop's "Gets or sets" wording stripped from descriptions, and several OpenAPI documents registered in one call, one per endpoint group. |
|
|
Hlibz.XmlDocs.AI
XML documentation comments in Microsoft.Extensions.AI JSON schemas, so MCP tool and AI function schemas are described like the OpenAPI document: AIJsonSchemaCreateOptions.WithXmlDocumentation() describes every property and type without a [Description] by its <summary> (Hlibz.XmlDocs), read at runtime, with StyleCop's "Gets or sets" wording removed. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-preview.1 | 157 | 11/29/2026 |