OLT.Extensions.Configuration.Flagsmith 1.0.0

Prefix Reserved
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                
#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                

CI Quality Gate Status Nuget

.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 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.

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 338 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