MinimalCleanArch.Features 0.1.21-preview

This is a prerelease version of MinimalCleanArch.Features.
dotnet add package MinimalCleanArch.Features --version 0.1.21-preview
                    
NuGet\Install-Package MinimalCleanArch.Features -Version 0.1.21-preview
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MinimalCleanArch.Features" Version="0.1.21-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MinimalCleanArch.Features" Version="0.1.21-preview" />
                    
Directory.Packages.props
<PackageReference Include="MinimalCleanArch.Features" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MinimalCleanArch.Features --version 0.1.21-preview
                    
#r "nuget: MinimalCleanArch.Features, 0.1.21-preview"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MinimalCleanArch.Features@0.1.21-preview
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MinimalCleanArch.Features&version=0.1.21-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MinimalCleanArch.Features&version=0.1.21-preview&prerelease
                    
Install as a Cake Tool

MinimalCleanArch.Features

Feature-flag port: IFeatureGate.IsEnabled(feature, tenant). Configuration backing; optional IFeatureStore for table overrides. No ASP.NET types on the port.

Version

  • Current: 0.1.20-preview (net9.0, net10.0).

Why Use It

  • gate an endpoint or workflow without putting flag checks in domain handlers
  • fail closed: a missing flag is disabled
  • swap config for a table/store without changing callers

When to Use It

  • generated --features apps (GET /api/todos/export gated by todo-export)
  • any host that needs tenant-aware entitlements

Dependency Direction

  • Depends on: no other MCA package
  • Typically referenced by: the HTTP host (filter) and optionally application code
  • Do not reference from: domain projects
  • HTTP adapter: RequireFeature in MinimalCleanArch.Extensions

Usage

dotnet add package MinimalCleanArch.Features --version 0.1.20-preview
{
  "Features": {
    "Flags": {
      "todo-export": false
    }
  }
}
builder.Services.AddFeatures(builder.Configuration);
app.MapGet("/api/todos/export", Export).RequireFeature("todo-export");
Product 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MinimalCleanArch.Features:

Package Downloads
MinimalCleanArch.Extensions

Extensions for Minimal API endpoints, including validation filters, error handling, logging, health checks, and standard response definitions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.21-preview 29 9/19/2026