AuroraScienceHub.Framework.Configuration 10.0.5

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package AuroraScienceHub.Framework.Configuration --version 10.0.5
                    
NuGet\Install-Package AuroraScienceHub.Framework.Configuration -Version 10.0.5
                    
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="AuroraScienceHub.Framework.Configuration" Version="10.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AuroraScienceHub.Framework.Configuration" Version="10.0.5" />
                    
Directory.Packages.props
<PackageReference Include="AuroraScienceHub.Framework.Configuration" />
                    
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 AuroraScienceHub.Framework.Configuration --version 10.0.5
                    
#r "nuget: AuroraScienceHub.Framework.Configuration, 10.0.5"
                    
#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 AuroraScienceHub.Framework.Configuration@10.0.5
                    
#: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=AuroraScienceHub.Framework.Configuration&version=10.0.5
                    
Install as a Cake Addin
#tool nuget:?package=AuroraScienceHub.Framework.Configuration&version=10.0.5
                    
Install as a Cake Tool

AuroraScienceHub.Framework.Configuration

Enhanced configuration utilities for .NET applications with type-safe configuration loading and validation.

Overview

Provides extension methods to simplify .NET's configuration system, including required configuration validation and strongly-typed options.

Key Features

  • Required Configuration - Enforce presence of configuration sections
  • Type-Safe Options - Strongly typed configuration with validation
  • Minimal Loading - Lightweight configuration for design-time tools
  • Option Descriptions - Self-documenting configuration classes

Installation

dotnet add package AuroraScienceHub.Framework.Configuration

Usage

Define Options

public class DatabaseOptions : IOptionDescription
{
    public static string OptionKey => "Database";

    public string ConnectionString { get; set; } = string.Empty;
    public int MaxRetries { get; set; }
    public TimeSpan Timeout { get; set; }
}

// appsettings.json
{
  "Database": {
    "ConnectionString": "Server=localhost;Database=mydb",
    "MaxRetries": 3,
    "Timeout": "00:00:30"
  }
}

Get Required Options

public class MyService
{
    private readonly DatabaseOptions _options;

    public MyService(IConfiguration configuration)
    {
        // Throws if section missing or invalid
        _options = configuration.GetRequiredOptions<DatabaseOptions>();
    }
}

Design-Time Loading

public class DesignTimeDbContextFactory : IDesignTimeDbContextFactory<MyDbContext>
{
    public MyDbContext CreateDbContext(string[] args)
    {
        var configuration = MinimalConfigurationLoader.Load(args);
        var options = configuration.GetRequiredOptions<DatabaseOptions>();
        return new MyDbContext(options);
    }
}

Service Registration Pattern

public static class ServiceCollectionExtensions
{
    public static IServiceCollection AddEmailService(
        this IServiceCollection services,
        IConfiguration configuration)
    {
        var options = configuration.GetRequiredOptions<EmailOptions>();
        services.Configure<EmailOptions>(
            configuration.GetSection(EmailOptions.OptionKey));
        services.AddScoped<IEmailSender, EmailSender>();
        return services;
    }
}

License

See LICENSE file in the repository root.

  • AuroraScienceHub.Framework.Utilities - Core utilities and helpers
  • AuroraScienceHub.Framework.Composition - Module-based configuration
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on AuroraScienceHub.Framework.Configuration:

Package Downloads
AuroraScienceHub.Framework.EntityFramework.NpgSql

Entity Framework Core extensions for PostgreSQL with NetTopologySuite spatial support, naming conventions, and database factory patterns.

AuroraScienceHub.Framework.Logging.OpenTelemetry

OpenTelemetry integration for distributed tracing, metrics, and observability with configuration and diagnostics support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.1.0 99 8/19/2026
10.0.8 116 8/14/2026
10.0.7 104 8/11/2026
10.0.6 98 8/11/2026
10.0.5 2,418 4/23/2026
10.0.4 132 4/23/2026
10.0.3 654 2/11/2026
10.0.2 747 1/29/2026
10.0.1 515 12/25/2025
10.0.0 457 12/11/2025
9.0.7 2,246 11/20/2025
9.0.6 223 11/15/2025
9.0.5 280 11/8/2025
9.0.4 274 10/24/2025
9.0.3 244 10/15/2025
9.0.2 232 10/15/2025
9.0.1 583 10/14/2025
9.0.1-workflow-test-2.17 164 10/14/2025