Oip.Settings
1.0.4
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Oip.Settings --version 1.0.4
NuGet\Install-Package Oip.Settings -Version 1.0.4
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.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Oip.Settings" Version="1.0.4" />
<PackageReference Include="Oip.Settings" />
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.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Oip.Settings, 1.0.4"
#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.0.4
#: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.0.4
#tool nuget:?package=Oip.Settings&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Oip.Settings
Application settings with EFCore provider with priority:
- Command line argument
- Environment variables
- Json file
- EF Core
Startup
- Make class with settings
public class AppSettings : BaseAppSettings<AppSettings>
{
public string TestString { get; set; } = "test";
public int TestInt { get; set; } = 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 | Versions 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 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. 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.
-
net6.0
- Microsoft.EntityFrameworkCore (>= 6.0.22)
- Microsoft.EntityFrameworkCore.InMemory (>= 6.0.22)
- Microsoft.EntityFrameworkCore.Sqlite (>= 6.0.22)
- Microsoft.EntityFrameworkCore.SqlServer (>= 6.0.22)
- Microsoft.Extensions.Configuration (>= 6.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 6.0.0)
- Microsoft.Extensions.Configuration.CommandLine (>= 6.0.0)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 6.0.0)
- Microsoft.Extensions.Configuration.Json (>= 6.0.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 6.0.22)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Oip.Settings:
| Package | Downloads |
|---|---|
|
Oip.Base
Package Description |
|
|
Oip.Data
Package Description |
|
|
Oip.Api
Package Description |
|
|
Oip.Discussions
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.0 | 1,018 | 12/20/2025 |
| 1.2.4 | 305 | 12/16/2025 |
| 1.2.3 | 523 | 12/5/2025 |
| 1.2.2 | 389 | 11/30/2025 |
| 1.2.1 | 140 | 11/29/2025 |
| 1.2.0 | 242 | 11/27/2025 |
| 1.1.10 | 226 | 11/22/2025 |
| 1.0.9 | 4,137 | 1/13/2025 |
| 1.0.8 | 176 | 12/24/2024 |
| 1.0.7 | 188 | 11/24/2024 |
| 1.0.6 | 256 | 6/1/2024 |
| 1.0.5 | 297 | 1/2/2024 |
| 1.0.4 | 226 | 12/31/2023 |
| 1.0.3 | 209 | 12/31/2023 |
| 1.0.2 | 199 | 12/31/2023 |
| 1.0.1 | 374 | 12/3/2023 |
| 1.0.0 | 219 | 11/30/2023 |