DangFugBixs.Cli 7.4.0

dotnet tool install --global DangFugBixs.Cli --version 7.4.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 DangFugBixs.Cli --version 7.4.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DangFugBixs.Cli&version=7.4.0
                    
nuke :add-package DangFugBixs.Cli --version 7.4.0
                    

DangFugBixs.Cli - DI Validation Tool

A command-line tool for validating VContainer dependency injection setup in Unity projects.

🚀 Features

  • Preflight Validation: Clean + build + validate orchestration
  • Runtime Resolve Smoke: Headless validation of DI container resolution
  • Multiple Output Formats: Text and JSON support
  • CI/CD Ready: Perfect for automated validation pipelines

📦 Installation

dotnet tool install -g DangFugBixs.Cli

💡 Usage

dotnet-di-smoke preflight MyUnityProject.csproj

With Options

# Clean build + validate
dotnet-di-smoke preflight MyUnityProject.csproj --clean

# With runtime resolve smoke test
dotnet-di-smoke preflight MyUnityProject.csproj --resolve-smoke

# JSON output
dotnet-di-smoke preflight MyUnityProject.csproj --format json --output report.json

Direct Assembly Validation

dotnet-di-smoke validate bin/Debug/net10.0/MyGame.dll

🎯 Commands

Command Description
preflight <project.csproj> Full validation (clean + build + validate)
validate <assembly.dll> Validate existing assembly

⚙️ Options

Option Description Default
--format <text|json> Output format text
--output <file> Save report to file -
--clean Clean generated files before build false
--resolve-smoke Run runtime resolve smoke test false

📊 What Gets Validated

Static Analysis

  • ✅ VContainerRegistration generation
  • ✅ Scope registration methods
  • ✅ RegistrationReport metadata consistency
  • ✅ MessagePipe broker reachability
  • ✅ ILogger root infrastructure

Runtime Resolve (Phase 1)

  • ✅ Container build success
  • ✅ EntryPoint resolution (ITickable, IInitializable, etc.)
  • ✅ Pure C# type resolution
  • ⚠️ MonoBehaviour types (skipped in Phase 1)

🎓 Examples

Basic Validation

cd MyUnityProject
dotnet-di-smoke preflight MyUnityProject.csproj

Output:

🚀 Preflight Validation
======================

🔨 Building project...
✅ Build succeeded

🔍 Running DI smoke validation...

✅ Preflight validation PASSED

With Resolve Smoke Test

dotnet-di-smoke preflight MyUnityProject.csproj --resolve-smoke

Output:

🚀 Preflight Validation
======================

🔨 Building project...
✅ Build succeeded

🔍 Running DI smoke validation...

✅ Preflight validation PASSED

🔍 Running runtime resolve smoke test...
Runtime Resolve Smoke Test
==========================

Container Built: ✅ Yes
Total Services: 15
Resolved: 12
Skipped: 3

Services:
  ✅ GameService
  ✅ AudioService
  ⏭️ [Skipped] PlayerView (MonoBehaviour)

CI/CD Integration

# In GitHub Actions or Azure Pipelines
dotnet tool install -g DangFugBixs.Cli
dotnet-di-smoke preflight MyGame.csproj --format json --output validation-report.json

# Exit code 0 = pass, 1 = fail

📝 Requirements

  • .NET 10.0+
  • Unity 2021.3+ (for project validation)
  • VContainer 1.0+ (in target project)

📄 License

This project is part of the NhemDangFugBixs Tooling collection.

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
7.4.0 106 5/28/2026
7.3.1 91 5/17/2026
7.3.0 89 5/17/2026
7.1.0 91 5/17/2026
6.0.2 104 3/23/2026
6.0.1 99 3/23/2026
6.0.0 98 3/21/2026
5.2.0-test 92 3/18/2026
5.1.0 102 3/18/2026