OLT.Extensions.Configuration.Flagsmith
1.0.0
Prefix Reserved
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Core 3.1
This package targets .NET Core 3.1. The package is compatible with this framework or higher.
dotnet add package OLT.Extensions.Configuration.Flagsmith --version 1.0.0
NuGet\Install-Package OLT.Extensions.Configuration.Flagsmith -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="OLT.Extensions.Configuration.Flagsmith" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OLT.Extensions.Configuration.Flagsmith --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OLT.Extensions.Configuration.Flagsmith, 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.
// Install OLT.Extensions.Configuration.Flagsmith as a Cake Addin #addin nuget:?package=OLT.Extensions.Configuration.Flagsmith&version=1.0.0 // Install OLT.Extensions.Configuration.Flagsmith as a Cake Tool #tool nuget:?package=OLT.Extensions.Configuration.Flagsmith&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
.NET Core Configuration Extensions to build Flagsmith as a Configuration Provider
This library was constructed to load Flagsmith features as configuration provider within .NET Core.
CHALLENGE: Flagsmith Feature ID are all lowercase, so I used a double underscore to indicate a uppercase letter. I'm open to a better way. 😃
app__settings:jwt__secret = AppSettings:JwtSecret
Configuration Builder example
builder
.SetBasePath(basePath)
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
.AddJsonFile($"appsettings.{environmentName}.json", true)
.AddEnvironmentVariables()
.AddCommandLine(args);
#if DEBUG
builder.AddUserSecrets<Program>();
#endif
var config = builder.Build();
builder.AddFlagsmith(options =>
{
options.ApiUrl = config.GetValue<string>("Flagsmith:ApiUrl");
options.EnvironmentKey = config.GetValue<string>("Flagsmith:ApiKey");
options.EnabledOnly = true;
});
return builder;
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- Flagsmith (>= 3.0.0)
- Microsoft.Extensions.Configuration (>= 3.1.21)
- Microsoft.Extensions.Configuration.Abstractions (>= 3.1.21)
-
net5.0
- Flagsmith (>= 3.0.0)
- Microsoft.Extensions.Configuration (>= 5.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
-
net6.0
- Flagsmith (>= 3.0.0)
- Microsoft.Extensions.Configuration (>= 6.0.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 6.0.0)
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.0 | 334 | 11/30/2021 |
0.1.0-beta-0005 | 200 | 11/30/2021 |
0.1.0-beta-0004 | 179 | 11/30/2021 |
0.1.0-beta-0003 | 188 | 11/30/2021 |
0.1.0-beta-0002 | 982 | 11/29/2021 |
0.1.0-beta-0001 | 951 | 11/29/2021 |