AuroraScienceHub.Framework.Utilities 11.4.0

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

AuroraScienceHub.Framework.Utilities

Core utilities and helper methods for common programming tasks in .NET applications.

Overview

Collection of utility classes and extension methods for date/time handling, regional utilities, configuration helpers, and system-level abstractions.

Key Features

  • Date/Time Utilities - Date ranges, time zone handling
  • Regional Support - Culture and localization helpers
  • System Extensions - Null checking, string operations
  • Configuration Helpers - Option description interfaces

Installation

dotnet add package AuroraScienceHub.Framework.Utilities

Usage

DateTimeRange

var range = new DateTimeRange(
    DateTime.Parse("2024-01-01"),
    DateTime.Parse("2024-12-31"));

if (range.Contains(DateTime.Now)) { }
var duration = range.Duration;

Required() - Null Checking

// Throws ArgumentNullException if null
var user = userRepository.GetById(id).Required();
var config = configuration.GetSection("Database").Required("Database config missing");

String Extensions

if (input.IsNullOrWhiteSpace()) { }
var result = longString.SafeSubstring(0, 100);
var preview = longText.Truncate(50); // Adds "..."

Configuration with IOptionDescription

public class DatabaseOptions : IOptionDescription
{
    public static string OptionKey => "Database";
    public string ConnectionString { get; set; } = string.Empty;
}

Host Options

public class HostOptions : IOptionDescription
{
    public static string OptionKey => "Host";
    public string Name { get; set; } = string.Empty;
    public string Namespace { get; set; } = string.Empty;
}

// appsettings.json
{
  "Host": {
    "Name": "user-service",
    "Namespace": "production"
  }
}

License

See LICENSE file in the repository root.

  • AuroraScienceHub.Framework.Configuration - Enhanced configuration utilities
  • AuroraScienceHub.Framework.Exceptions - Framework exception types
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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net11.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on AuroraScienceHub.Framework.Utilities:

Package Downloads
AuroraScienceHub.Framework.Entities

Domain-driven design building blocks including entity interfaces, strongly-typed identifiers, specifications pattern, and auditing support.

AuroraScienceHub.Framework.Diagnostics

Diagnostics and monitoring utilities with health checks for PostgreSQL, SQLite, application descriptors, and metrics integration.

AuroraScienceHub.Framework.Configuration

Type-safe configuration loading with validation support for JSON, environment variables, and command-line arguments.

AuroraScienceHub.Framework.ClickHouse

ClickHouse database integration with Dapper support for high-performance columnar database operations and analytics.

AuroraScienceHub.Framework.AspNetCore

ASP.NET Core extensions for composition, diagnostics, problem details (RFC 7807), security utilities, routing enhancements, and output caching.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.4.0 178 11/19/2026
11.3.0 233 11/14/2026
11.2.0 153 11/13/2026
11.1.1 163 11/8/2026
11.1.0 155 11/5/2026
11.0.1 187 10/19/2026
11.0.1-feature-nuget-truste... 134 10/16/2026
11.0.0 225 10/16/2026
10.1.0 1,807 8/19/2026
10.0.8 234 8/14/2026
10.0.7 247 8/11/2026
10.0.6 207 8/11/2026
10.0.5 2,653 4/23/2026
10.0.4 189 4/23/2026
10.0.3 870 2/11/2026
10.0.2 1,176 1/29/2026
10.0.1 637 12/25/2025
10.0.0 558 12/11/2025
9.0.7 2,841 11/20/2025
9.0.6 343 11/15/2025
Loading failed