agentic-net-examples
AGENTS.md4 starsChanged 2 months agoMITView on GitHub
AI-friendly C# code examples for Aspose.Words for .NET
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository29 other files it gives its agents.
- barcode-imageAGENTS.md
- chartsAGENTS.md
- commentsAGENTS.md
- comparisonAGENTS.md
- content-controlAGENTS.md
- conversionAGENTS.md
- extractionAGENTS.md
- find-and-replaceAGENTS.md
- fontsAGENTS.md
- form-fieldsAGENTS.md
- hyphenationAGENTS.md
- imagesAGENTS.md
- join-documentsAGENTS.md
- linq-reportingAGENTS.md
- listsAGENTS.md
- mail-mergeAGENTS.md
- officemathAGENTS.md
- ole-objectsAGENTS.md
- paragraphsAGENTS.md
- programming-with-documentsAGENTS.md
- rangeAGENTS.md
- renderingAGENTS.md
- security-and-protectionAGENTS.md
- shapesAGENTS.md
- split-documentAGENTS.md
- track-changesAGENTS.md
- vba-macrosAGENTS.md
- watermarkAGENTS.md
- working-with-tableAGENTS.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
17 rules. About 0 are common, 13 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 17
When working in this repository:
- Very specific: line 18
Keep every .cs file as a standalone console application.
- Distinctive: line 20
Follow category-level AGENTS.md guidance for feature-specific constraints.
- Very specific: line 154
Use public Aspose.Words APIs and keep examples self-contained.
- Very specific: line 155
Keep each example as a single .cs console application.
- Distinctive: line 158
Keep input and output paths explicit and easy to follow.
- Distinctive: line 159
Prefer category-level guidance from each folder's AGENTS.md.
- Distinctive: line 169
Never create multi-file example projects for a single example.
- Distinctive: line 170
Never use invented or unsupported Aspose.Words APIs.
- Very specific: line 171
Never modify generated AGENTS.md, README.md, or index.json by hand without regenerating related metadata.
- Distinctive: line 172
Never rely on missing external input files.
- Distinctive: line 261
Add other packages only when an example requires them, for example:
- Distinctive: line 281
Use root metadata for repository navigation and category metadata for feature-specific implementation guidance.
- Distinctive: line 283
Keep every example as a standalone console application with explicit inputs and outputs.
- Distinctive: line 284
Use the package versions and additional dependencies recorded for the selected category.
- Distinctive: line 287
Keep raw generation evidence as diagnostic input separate from publication-ready documentation.
- Distinctive: line 293
Keep the generated maintenance attribution and refresh its date whenever root metadata is rebuilt.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Aspose.Words for .NET Examples
AI-friendly repository containing validated C# examples for Aspose.Words for .NET API.
Persona
Act as a senior .NET documentation editor who provides clear, concise guidance for using Aspose.Words examples.
When working in this repository:
- Keep every
.csfile as a standalone console application. - Require successful
dotnet buildanddotnet runverification. - Follow category-level
AGENTS.mdguidance for feature-specific constraints.
Repository Overview
The repository provides ready-to-run console samples that demonstrate how to use Aspose.Words for .NET across many scenarios. Each example is self-contained, builds on the documented API, and can be executed with minimal setup.
Statistics (as of 2026-11-05):
- Total Examples: 1793
- Categories: 29
- Overall Pass Rate: 100.0%
- Source Run: 20261102_031946_08fb5b
Category Details
barcode-image
- Examples: 30
- Guide: AGENTS.md
charts
- Examples: 39
- Guide: AGENTS.md
comments
- Examples: 30
- Guide: AGENTS.md
comparison
- Examples: 30
- Guide: AGENTS.md
content-control
- Examples: 35
- Guide: AGENTS.md
conversion
- Examples: 108
- Guide: AGENTS.md
extraction
- Examples: 30
- Guide: AGENTS.md
find-and-replace
- Examples: 63
- Guide: AGENTS.md
fonts
- Examples: 35
- Guide: AGENTS.md
form-fields
- Examples: 30
- Guide: AGENTS.md
hyphenation
- Examples: 40
- Guide: AGENTS.md
images
- Examples: 120
- Guide: AGENTS.md
join-documents
- Examples: 36
- Guide: AGENTS.md
linq-reporting
- Examples: 403
- Guide: AGENTS.md
lists
- Examples: 30
- Guide: AGENTS.md
mail-merge
- Examples: 30
- Guide: AGENTS.md
officemath
- Examples: 30
- Guide: AGENTS.md
ole-objects
- Examples: 29
- Guide: AGENTS.md
paragraphs
- Examples: 35
- Guide: AGENTS.md
programming-with-documents
- Examples: 110
- Guide: AGENTS.md
range
- Examples: 30
- Guide: AGENTS.md
rendering
- Examples: 70
- Guide: AGENTS.md
security-and-protection
- Examples: 30
- Guide: AGENTS.md
shapes
- Examples: 35
- Guide: AGENTS.md
split-document
- Examples: 30
- Guide: AGENTS.md
track-changes
- Examples: 40
- Guide: AGENTS.md
vba-macros
- Examples: 34
- Guide: AGENTS.md
watermark
- Examples: 33
- Guide: AGENTS.md
working-with-table
- Examples: 198
- Guide: AGENTS.md
Boundaries
Always
- Use public
Aspose.WordsAPIs and keep examples self-contained. - Keep each example as a single
.csconsole application. - Build with
net8.0and the configured package version. - Save the resulting document or output file when the task requires output.
- Keep input and output paths explicit and easy to follow.
- Prefer category-level guidance from each folder's
AGENTS.md.
Ask First
- Adding extra NuGet packages beyond the known verifier package set.
- Changing shared repository infrastructure or project templates.
- Introducing platform-specific behavior not already present in the examples.
Never
- Never create multi-file example projects for a single example.
- Never use invented or unsupported Aspose.Words APIs.
- Never modify generated
AGENTS.md,README.md, orindex.jsonby hand without regenerating related metadata. - Never rely on missing external input files; bootstrap sample inputs locally when possible.
Repository Structure
AGENTS.md
README.md
index.json
llm.txt
+-- barcode-image/
+-- charts/
+-- comments/
+-- comparison/
+-- content-control/
+-- conversion/
+-- extraction/
+-- find-and-replace/
+-- fonts/
+-- form-fields/
+-- hyphenation/
+-- images/
+-- join-documents/
+-- linq-reporting/
+-- lists/
+-- mail-merge/
+-- officemath/
+-- ole-objects/
+-- paragraphs/
+-- programming-with-documents/
+-- range/
+-- rendering/
+-- security-and-protection/
+-- shapes/
+-- split-document/
+-- track-changes/
+-- vba-macros/
+-- watermark/
+-- working-with-table/Category Index
| Category | Examples | Pass Rate | Details |
| BarCode Image | 30 | 100.0% | AGENTS.md |
| Charts | 39 | 100.0% | AGENTS.md |
| Comments | 30 | 100.0% | AGENTS.md |
| Comparison | 30 | 100.0% | AGENTS.md |
| Content Control | 35 | 100.0% | AGENTS.md |
| Conversion | 108 | 100.0% | AGENTS.md |
| Extraction | 30 | 100.0% | AGENTS.md |
| Find And Replace | 63 | 100.0% | AGENTS.md |
| Fonts | 35 | 100.0% | AGENTS.md |
| Form Fields | 30 | 100.0% | AGENTS.md |
| Hyphenation | 40 | 100.0% | AGENTS.md |
| Images | 120 | 100.0% | AGENTS.md |
| Join Documents | 36 | 100.0% | AGENTS.md |
| LINQ Reporting | 403 | 100.0% | AGENTS.md |
| Lists | 30 | 100.0% | AGENTS.md |
| Mail Merge | 30 | 100.0% | AGENTS.md |
| OfficeMath | 30 | 100.0% | AGENTS.md |
| OLE Objects | 29 | 100.0% | AGENTS.md |
| Paragraphs | 35 | 100.0% | AGENTS.md |
| Programming With Documents | 110 | 100.0% | AGENTS.md |
| Range | 30 | 100.0% | AGENTS.md |
| Rendering | 70 | 100.0% | AGENTS.md |
| Security And Protection | 30 | 100.0% | AGENTS.md |
| Shapes | 35 | 100.0% | AGENTS.md |
| Split Document | 30 | 100.0% | AGENTS.md |
| Track Changes | 40 | 100.0% | AGENTS.md |
| VBA Macros | 34 | 100.0% | AGENTS.md |
| Watermark | 33 | 100.0% | AGENTS.md |
| Working With Table | 198 | 100.0% | AGENTS.md |
Command Reference
Create a temporary console project
dotnet new console -n ExampleProject --framework net8.0
cd ExampleProjectAdd required packages
dotnet add package Aspose.Words --version 26.10.0Add other packages only when an example requires them, for example:
dotnet add package Aspose.BarCode --version 26.8.0
dotnet add package Aspose.Drawing.Common --version 26.8.0
dotnet add package Newtonsoft.Json
dotnet add package SkiaSharp --version 3.119.0
dotnet add package System.Text.Encoding.CodePages --version 9.0.2Copy and run one example
Copy-Item ..\<category-folder>\<example-file>.cs .\Program.cs
dotnet build --configuration Release --verbosity minimal
dotnet run --configuration Release --no-buildNotes for Agents
- Use root metadata for repository navigation and category metadata for feature-specific implementation guidance.
- Preserve exact file-to-task traceability when updating generated examples.
- Keep every example as a standalone console application with explicit inputs and outputs.
- Use the package versions and additional dependencies recorded for the selected category.
- Require successful build and runtime verification before publishing an example.
- Regenerate README.md, AGENTS.md, index.json, and llm.txt together instead of editing generated metadata independently.
- Keep raw generation evidence as diagnostic input separate from publication-ready documentation.
Metadata Maintenance
- Regenerate root metadata after category content, package versions, or validation results change.
- Preserve metadata-sources as the audit trail for prompts, raw diagnostics, polished sections, and assembly manifests.
- Keep the generated maintenance attribution and refresh its date whenever root metadata is rebuilt.
Maintained by an agentic example generation workflow | For repository overview, see README.md | Last updated: 2026-11-05
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

