ConfigContraband.Tool 0.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global ConfigContraband.Tool --version 0.9.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local ConfigContraband.Tool --version 0.9.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ConfigContraband.Tool&version=0.9.0
                    
nuke :add-package ConfigContraband.Tool --version 0.9.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:

ConfigContraband dual loop: Roslyn analyzer and schema IntelliSense

Docs

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Ship alongside ConfigContraband 0.9.0. Schema required/constraint emission now treats a same-scope [OptionsValidator] IValidateOptions registration as ValidateDataAnnotations().