IoCTools.Tools.Cli
1.7.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global IoCTools.Tools.Cli --version 1.7.2
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local IoCTools.Tools.Cli --version 1.7.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=IoCTools.Tools.Cli&version=1.7.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package IoCTools.Tools.Cli --version 1.7.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
IoCTools.Tools.Cli
IoCTools.Tools.Cli is the developer-facing inspection tool for IoCTools. Install it as a dotnet tool and point it at a real project to inspect generated constructors, registrations, diagnostics, configuration bindings, validators, and migration posture.
Install
dotnet tool install --global IoCTools.Tools.Cli
To install from a local build:
dotnet pack IoCTools.Tools.Cli/IoCTools.Tools.Cli.csproj -c Release -o ./artifacts
dotnet tool install --global --add-source ./artifacts IoCTools.Tools.Cli
Key Commands
ioc-tools evidence --project MyProject.csproj --json
ioc-tools suppress --project MyProject.csproj --codes IOC035,IOC092 --json
ioc-tools validator-graph --project MyProject.csproj --why MyValidator --json
evidenceemits one correlated bundle across registrations, diagnostics, configuration, validators, migration hints, and generated artifacts.evidence --baseline <dir> --output <dir> --jsonadds stable artifact fingerprints and structured compare deltas withadded,removed,changed, andunchangedstatus.suppress --jsonemits structured suppression metadata alongside the.editorconfigrecipe.validator-graph --jsonandvalidator-graph --why --jsonemit structured contracts for validator topology and lifetime reasoning.
Authoring Guidance
- Never use
[Inject]in new code. - Never use
InjectConfigurationin new code. - Prefer
[DependsOn<T>]for service dependencies. - Prefer
[DependsOnConfiguration<T>]or[DependsOnOptions<T>]for configuration dependencies.
See the repo docs for the full reference:
docs/cli-reference.mddocs/diagnostics.mddocs/attributes.md
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.
v1.7.2: consumer regression fixes — restore [Cover<T>] source-compat via global using injection, fix IOC997 scalar TypedConstant params parsing, downgrade TDIAG08 to Info. See CHANGELOG.md for full notes.