GovBuilt.FeatureFlags 1.0.5

dotnet add package GovBuilt.FeatureFlags --version 1.0.5
                    
NuGet\Install-Package GovBuilt.FeatureFlags -Version 1.0.5
                    
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="GovBuilt.FeatureFlags" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GovBuilt.FeatureFlags" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="GovBuilt.FeatureFlags" />
                    
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 GovBuilt.FeatureFlags --version 1.0.5
                    
#r "nuget: GovBuilt.FeatureFlags, 1.0.5"
                    
#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 GovBuilt.FeatureFlags@1.0.5
                    
#: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=GovBuilt.FeatureFlags&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=GovBuilt.FeatureFlags&version=1.0.5
                    
Install as a Cake Tool

GovBuilt.FeatureFlags

Private package — GovBuiltFeed only. Do not publish to nuget.org.

An Orchard Core module that stores per-tenant feature flag settings and provides the admin UI for managing them.

The module is the flag authority. It owns storage, the admin settings page, and the IFeatureFlagHelper DI registration. Consuming modules never write flags — they only read them via GovBuilt.FeatureFlags.Abstraction.


What this package does

  • Stores feature flag settings per tenant using Orchard Core ISiteService
  • Renders the admin settings page at Admin → Configuration → Settings → Feature Flags
  • Registers IFeatureFlagHelper in the Orchard Core tenant DI container
  • Protects the settings page with the ManageFeatureFlags permission (Administrators only by default)

What this package does NOT

  • Expose any controllers or API endpoints
  • Share flag state across tenants
  • Require database migrations

Prerequisites

  • .NET 8
  • Orchard Core multi-tenant host
  • GovBuilt.FeatureFlags.Abstraction (peer dependency — provides FeatureFlagSetting and IFeatureFlagHelper)

Installation

Step 1: Add the private feed (once per machine)

dotnet nuget add source "https://pkgs.dev.azure.com/MCCinnovations/_packaging/GovBuiltFeed/nuget/v3/index.json" \
  --name GovBuiltFeed \
  --username az \
  --password <PAT>

Step 2: Add the package to the host project

<PackageReference Include="GovBuilt.FeatureFlags" Version="1.0.5" />

No Startup wiring required — the module is discovered automatically by Orchard Core.


Adding a new feature flag

Only FeatureFlagSetting.cs in GovBuilt.FeatureFlags.Abstraction needs to change:

[FeatureFlagInfo(Title = "My Feature", Type = "General", HelpText = "Enables my feature.")]
public bool IsMyFeature { get; set; }

The driver (FeatureFlagSettingsDisplayDriver) and admin view both use reflection and pick up new properties automatically.

Important rules:

  • Prefix all flag properties with Is
  • All flags default to false (opt-in)
  • Use Type to group flags in the admin UI filter dropdown
  • Bump <Version> in both packages and publish after adding a flag

Publishing

dotnet pack src/GovBuilt.Core/GovBuilt.FeatureFlags/GovBuilt.FeatureFlags.csproj -c Release -o ./artifacts
dotnet nuget push ./artifacts/GovBuilt.FeatureFlags.*.nupkg --source GovBuiltFeed --api-key az
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 971 4/21/2026
1.0.4 146 4/21/2026
1.0.3 94 4/16/2026
1.0.2 93 4/16/2026
1.0.1 98 4/14/2026
1.0.0 97 4/14/2026