GovBuilt.FeatureFlags 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package GovBuilt.FeatureFlags --version 1.0.0
                    
NuGet\Install-Package GovBuilt.FeatureFlags -Version 1.0.0
                    
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.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GovBuilt.FeatureFlags" Version="1.0.0" />
                    
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.0
                    
#r "nuget: GovBuilt.FeatureFlags, 1.0.0"
                    
#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.0
                    
#: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.0
                    
Install as a Cake Addin
#tool nuget:?package=GovBuilt.FeatureFlags&version=1.0.0
                    
Install as a Cake Tool

GovBuilt.FeatureFlags

Private package — publish to the GovBuilt private NuGet feed only. Do NOT publish to nuget.org.

Orchard Core module that stores and manages per-tenant feature flag settings using Orchard Core's ISiteService. Provides an admin UI at Admin → Configuration → Settings → Feature Flags for toggling flags per tenant.


Installation

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

Add to your Orchard Core host as a project or package reference. The module auto-registers via OC's module discovery — no manual Startup wiring needed in the host.


Adding a New Feature Flag

  1. Add a bool property to FeatureFlagSetting in GovBuilt.FeatureFlags.Abstraction:
public bool IsMyNewFeature { get; set; }
  1. Add the matching property to FeatureFlagSettingsViewModel in this module.

  2. Wire Edit / UpdateAsync in FeatureFlagSettingsDisplayDriver.

  3. Add a checkbox to Views/FeatureFlagSetting.Edit.cshtml.

  4. Bump versions in both packages and publish to the private feed.


Naming Conventions

Rule Example
Prefix boolean flags with Is IsAdvancedFormFileUpload
Use full descriptive names IsUserImpersonationEnabled
No abbreviations ImpUsr
Default all flags to false opt-in model

Multi-Tenant Behaviour

ISiteService is tenant-scoped by Orchard Core. Every read returns the settings for the currently executing tenant with no extra isolation code needed.


Publishing (Private Feed)

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 1,009 4/21/2026
1.0.4 147 4/21/2026
1.0.3 95 4/16/2026
1.0.2 94 4/16/2026
1.0.1 100 4/14/2026
1.0.0 98 4/14/2026