Oip.Settings 1.3.0

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

Oip.Settings

Application settings with EFCore provider with priority:

  • Command line argument
  • Environment variables
  • JSON files
  • User secret
  • Docker secret
  • EF Core

Startup

  1. Make class with settings
public class AppSettings : BaseAppSettings<AppSettings>
{
    public string TestString { get; set; } = "test";
    public int TestInt { get; set; } = 1;
}
  1. Initialize settings with ConnectionString in in json file, command line arg or other
public class Program
{
    public static void Main(string[] args)
    {
        // Initialize settings 
        AppSettings.Initialize(args);

        var builder = WebApplication.CreateBuilder(args);
        // Add settings db context
        builder.Services.AddAppSettingsDbContext(AppSettings.Instance);
        
        var app = builder.Build();
        app.MapGet("/", () => $"AppSettings.Instance.TestInt: {AppSettings.Instance.TestInt}");

        app.Run();
    }
}
Product Compatible and additional computed target framework versions.
.NET 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 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 (3)

Showing the top 3 NuGet packages that depend on Oip.Settings:

Package Downloads
Oip.Base

Package Description

Oip.Data

Package Description

Oip.Api

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.3.0 287 12/20/2025
1.2.4 272 12/16/2025
1.2.3 498 12/5/2025
1.2.2 358 11/30/2025
1.2.1 115 11/29/2025
1.2.0 213 11/27/2025
1.1.10 200 11/22/2025
1.0.9 3,020 1/13/2025
1.0.8 153 12/24/2024
1.0.7 164 11/24/2024
1.0.6 228 6/1/2024
1.0.5 273 1/2/2024
1.0.4 197 12/31/2023
1.0.3 182 12/31/2023
1.0.2 173 12/31/2023
1.0.1 328 12/3/2023
1.0.0 194 11/30/2023