AuroraScienceHub.Framework.Utilities 10.0.5

Prefix Reserved
dotnet add package AuroraScienceHub.Framework.Utilities --version 10.0.5
                    
NuGet\Install-Package AuroraScienceHub.Framework.Utilities -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.Utilities" 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.Utilities" Version="10.0.5" />
                    
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 10.0.5
                    
#r "nuget: AuroraScienceHub.Framework.Utilities, 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.Utilities@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.Utilities&version=10.0.5
                    
Install as a Cake Addin
#tool nuget:?package=AuroraScienceHub.Framework.Utilities&version=10.0.5
                    
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (8)

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

Package Downloads
AuroraScienceHub.Framework.Diagnostics

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

AuroraScienceHub.Framework.Entities

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

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, and routing enhancements.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.5 1,071 4/23/2026
10.0.4 151 4/23/2026
10.0.3 518 2/11/2026
10.0.2 581 1/29/2026
10.0.1 538 12/25/2025
10.0.0 519 12/11/2025
9.0.7 2,040 11/20/2025
9.0.6 302 11/15/2025
9.0.5 349 11/8/2025
9.0.4 330 10/24/2025
9.0.3 321 10/15/2025
9.0.2 297 10/15/2025
9.0.1 503 10/14/2025
9.0.1-workflow-test-2.17 150 10/14/2025