GovBuilt.FeatureFlags
1.0.0
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
<PackageReference Include="GovBuilt.FeatureFlags" Version="1.0.0" />
<PackageVersion Include="GovBuilt.FeatureFlags" Version="1.0.0" />
<PackageReference Include="GovBuilt.FeatureFlags" />
paket add GovBuilt.FeatureFlags --version 1.0.0
#r "nuget: GovBuilt.FeatureFlags, 1.0.0"
#:package GovBuilt.FeatureFlags@1.0.0
#addin nuget:?package=GovBuilt.FeatureFlags&version=1.0.0
#tool nuget:?package=GovBuilt.FeatureFlags&version=1.0.0
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
- Add a
boolproperty toFeatureFlagSettinginGovBuilt.FeatureFlags.Abstraction:
public bool IsMyNewFeature { get; set; }
Add the matching property to
FeatureFlagSettingsViewModelin this module.Wire
Edit/UpdateAsyncinFeatureFlagSettingsDisplayDriver.Add a checkbox to
Views/FeatureFlagSetting.Edit.cshtml.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 | Versions 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. |
-
net8.0
- GovBuilt.FeatureFlags.Abstraction (>= 1.0.0)
- OrchardCore.DisplayManagement (>= 2.2.0)
- OrchardCore.Module.Targets (>= 2.2.0)
- OrchardCore.Navigation.Core (>= 2.2.0)
- OrchardCore.Security (>= 2.2.0)
- OrchardCore.Settings (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.