NuvTools.Common 9.5.4

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

Nuv Tools Common Library

Common library for Web, Desktop and Mobile (MAUI) applications.

Overview

NuvTools.Common is a cross-platform utility library for .NET 8 and .NET 9, designed to streamline development for Web, Desktop, and Mobile (MAUI) applications. It provides a rich set of reusable components, extension methods, and helpers that address frequent programming needs, focusing on consistency, safety, and productivity.

Main Features Overview

NuvTools.Common provides a suite of utilities and helpers to simplify development across .NET 8 and .NET 9 projects, including Web, Desktop, and Mobile (MAUI) applications. Its main features are:

1. ResultWrapper

  • Purpose: Standardizes operation result handling with support for success, error, and validation outcomes.
  • Key Types: IResult, IResult<T>, Result, Result<T>, MessageDetail, ResultType.
  • Highlights: Factory methods for creating results, structured messages, and easy integration with logging.

2. NumbersExtensions

  • Purpose: Safely parse strings to numeric types (long, int, short, decimal) with null or zero fallback.
  • Highlights: Reduces boilerplate and handles invalid input gracefully.

3. ContentTypes

  • Purpose: Centralized management of file content types using annotated enums.
  • Key Types: ContentTypes.Enumeration with extension methods for retrieving file extension, MIME type, and friendly name.
  • Highlights: Simplifies file handling and metadata retrieval.

4. Web Utilities

  • Purpose: Streamlines query string generation and parsing for web APIs.
  • Key Methods: GetQueryString(), ParseQueryString().
  • Highlights: Supports complex objects, collections, and edge cases in query string manipulation.

5. Serialization Support

  • Purpose: Facilitates JSON serialization and deserialization, including support for enums and nested models.
  • Highlights: Handles complex object graphs and collections.

6. Enums and Attribute Helpers

  • Purpose: Simplifies working with enums and attributes, such as retrieving display names, descriptions, and custom metadata.
  • Highlights: Extension methods for extracting information from enums using attributes like DisplayAttribute.

7. Date and Time Utilities

  • Purpose: Provides helpers for parsing, formatting, and manipulating dates and times.
  • Highlights: Methods for converting between different date/time representations and handling nullable values.

8. Collection and LINQ Extensions

  • Purpose: Adds convenience methods for working with collections, lists, and LINQ queries.
  • Highlights: Safe access, filtering, mapping, and transformation utilities.

9. IO and File Helpers

  • Purpose: Facilitates file operations, such as reading, writing, and managing file paths and content.
  • Highlights: Utilities for handling file streams, directories, and file type detection.

10. String Extensions

  • Purpose: Enhances string manipulation with methods for formatting, parsing, validation, and conversion.
  • Highlights: Null-safe operations, trimming, case conversion, and more.

11. Reflection Utilities

  • Purpose: Provides helpers for runtime type inspection and dynamic member access.
  • Highlights: Methods for getting property values, types, and attributes dynamically.

12. Validation Helpers

  • Purpose: Supports data validation scenarios, including model and property validation.
  • Highlights: Methods for checking required fields, data annotations, and custom validation logic.

Benefits:

  • Consistent patterns for error/success handling.
  • Strongly-typed APIs for safer code.
  • Reduces repetitive code and runtime errors.
  • Designed for modern .NET and C# features.

For more details, refer to the XML documentation in the source code or explore the relevant namespaces.

Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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 NuvTools.Common:

Package Downloads
NuvTools.Data.EntityFrameworkCore

Entity Framework Core extensions providing DbContextBase with CRUD operations, Result pattern error handling, transaction management, bulk operations, and async paging.

NuvTools.Security.Identity.AspNetCore

ASP.NET Core user management service with email confirmation, password management, and role administration for ASP.NET Identity.

NuvTools.AspNetCore.Blazor.MudBlazor

MudBlazor helpers including converters, validators, and server-paged table base component.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.5 0 3/16/2026
10.0.3 167 3/6/2026
10.0.2 468 1/26/2026
10.0.1 118 1/18/2026
10.0.0 229 12/6/2025
9.5.4 236 11/3/2025
9.5.3 217 11/3/2025
9.5.2 217 11/3/2025
9.5.1 147 11/2/2025
9.5.0 258 10/25/2025
9.2.1 737 9/16/2025
9.2.0 607 7/22/2025
9.1.3 1,585 6/9/2025
9.1.2 244 5/22/2025
9.1.1 1,072 4/10/2025
9.1.0 322 1/12/2025
9.0.3 127 1/11/2025
9.0.2 272 12/23/2024
Loading failed