ConfigContraband.Tool
0.8.0
See the version list below for details.
dotnet tool install --global ConfigContraband.Tool --version 0.8.0
dotnet new tool-manifest
dotnet tool install --local ConfigContraband.Tool --version 0.8.0
#tool dotnet:?package=ConfigContraband.Tool&version=0.8.0
nuke :add-package ConfigContraband.Tool --version 0.8.0
<p align="center"> <img src="https://raw.githubusercontent.com/georgepwall1991/ConfigContraband/main/assets/configcontraband-icon.png" width="96" height="96" alt="ConfigContraband icon — appsettings JSON Schema generator"> </p>
ConfigContraband.Tool
Generate appsettings.schema.json from your .NET Options model for editor IntelliSense, type checking, and required-key hints that match ValidateDataAnnotations and BindConfiguration.
Requires a .NET 10 SDK. Pair with the ConfigContraband analyzer for compile-time Options validation.
Install
dotnet tool install --global ConfigContraband.Tool
Generate a schema
configcontraband schema --project src/MyApp/MyApp.csproj
Point your settings file at the schema:
{
"$schema": "appsettings.schema.json",
"Stripe": {
"ApiKey": "sk_live_..."
}
}
Dual loop
Use the analyzer for build/IDE diagnostics and this tool for live appsettings completion:
Docs
- Analyzer package: ConfigContraband
- Full docs and samples: GitHub repository
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.2 | 34 | 8/25/2026 |
| 0.9.1 | 35 | 8/25/2026 |
| 0.9.0 | 198 | 8/12/2026 |
| 0.8.0 | 92 | 8/12/2026 |
| 0.7.29 | 93 | 8/12/2026 |
| 0.7.28 | 94 | 8/12/2026 |
| 0.7.27 | 89 | 8/12/2026 |
| 0.7.26 | 110 | 7/26/2026 |
| 0.7.25 | 107 | 7/26/2026 |
| 0.7.24 | 108 | 7/25/2026 |
| 0.7.23 | 115 | 7/25/2026 |
| 0.7.22 | 114 | 7/21/2026 |
| 0.7.21 | 113 | 7/21/2026 |
| 0.7.20 | 107 | 7/16/2026 |
| 0.7.19 | 106 | 7/16/2026 |
| 0.7.18 | 118 | 7/16/2026 |
| 0.7.17 | 115 | 7/16/2026 |
| 0.7.16 | 104 | 7/16/2026 |
| 0.7.15 | 106 | 7/16/2026 |
| 0.7.14 | 110 | 7/16/2026 |
Ship alongside ConfigContraband 0.8.0 CFG010 DataAnnotations constraint diagnostics. Schema generation already emitted Range/length bounds; no schema surface change.