NuvTools.Common 9.5.2

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

Showing the top 2 NuGet packages that depend on NuvTools.Common:

Package Downloads
NuvTools.Data.EntityFrameworkCore

Library containg helpers to manipulate data using Entity Framework Core.

NuvTools.Security.Identity.AspNetCore

Library to use with ASP.NET Identity modules on server-side.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.1 90 1/18/2026
10.0.0 199 12/6/2025
9.5.4 226 11/3/2025
9.5.3 200 11/3/2025
9.5.2 198 11/3/2025
9.5.1 134 11/2/2025
9.5.0 244 10/25/2025
9.2.1 724 9/16/2025
9.2.0 594 7/22/2025
9.1.3 1,575 6/9/2025
9.1.2 231 5/22/2025
9.1.1 1,061 4/10/2025
9.1.0 304 1/12/2025
9.0.3 115 1/11/2025
9.0.2 260 12/23/2024
9.0.1 258 11/21/2024
9.0.0 251 11/13/2024
8.1.3 254 9/30/2024
8.1.2 327 9/6/2024
8.0.2 523 3/6/2024
8.0.1 539 3/4/2024
8.0.0 387 1/28/2024
7.1.5 368 11/2/2023
7.1.4 171 11/2/2023
7.1.3 512 9/10/2023
7.1.2 211 9/10/2023
7.1.1 222 9/10/2023
7.1.0 215 9/10/2023
7.0.4 238 9/1/2023
7.0.2 415 8/27/2023
7.0.1 895 2/26/2023
7.0.0 353 2/26/2023