markdownc88715b7
| 1 | # AIGuiders.DotnetTools |
| 2 | |
| 3 | Small, pragmatic .NET tools used across AIGuiders projects. |
| 4 | |
| 5 | ## Tools |
| 6 | |
| 7 | | CLI | NuGet package | Purpose | |
| 8 | |-----|---------------|---------| |
| 9 | | `aid-publish` | `AIGuiders.DotnetTools.PublishFixedTarget` | `dotnet publish` → fixed target mirror, optional kill-locking process, proof timestamps | |
| 10 | | `aig-toml-check` | `AIGuiders.DotnetTools.TomlCheck` | TOML + JSON Schema (`#:schema` directive) | |
| 11 | |
| 12 | ### aid-publish |
| 13 | |
| 14 | - mirrors output into a fixed target path, |
| 15 | - optionally kills the app only if it runs from that target path (file-lock preflight), |
| 16 | - prints proof timestamps, |
| 17 | - optionally `-RequireMirrorFile` to assert critical files after mirror (e.g. Roslyn MSBuild Workspace `BuildHost-netcore`). |
| 18 | |
| 19 | ### aig-toml-check |
| 20 | |
| 21 | - reads `#:schema path.json` from TOML headers (Taplo-style), |
| 22 | - parses with Tomlyn, validates with JsonSchema.Net, |
| 23 | - `check <files-or-dirs>` exit code 0/1. |
| 24 | |
| 25 | ## Install as local tools |
| 26 | |
| 27 | In a repo root: |
| 28 | |
| 29 | ```bash |
| 30 | dotnet new tool-manifest |
| 31 | dotnet tool install AIGuiders.DotnetTools.PublishFixedTarget |
| 32 | dotnet tool install AIGuiders.DotnetTools.TomlCheck |
| 33 | dotnet tool restore |
| 34 | ``` |
| 35 | |
| 36 | ```bash |
| 37 | dotnet aid-publish -Help |
| 38 | dotnet aig-toml-check check IntentMelody/intent-catalog.toml |
| 39 | ``` |
| 40 | |
| 41 | ## Release |
| 42 | |
| 43 | Tag prefix per tool — see [docs/release.md](docs/release.md). |
| 44 | |