NuvTools.Common 10.0.0

dotnet add package NuvTools.Common --version 10.0.0
                    
NuGet\Install-Package NuvTools.Common -Version 10.0.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="NuvTools.Common" Version="10.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NuvTools.Common" Version="10.0.0" />
                    
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 10.0.0
                    
#r "nuget: NuvTools.Common, 10.0.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 NuvTools.Common@10.0.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=NuvTools.Common&version=10.0.0
                    
Install as a Cake Addin
#tool nuget:?package=NuvTools.Common&version=10.0.0
                    
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 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 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.0 187 12/6/2025
9.5.4 214 11/3/2025
9.5.3 193 11/3/2025
9.5.2 191 11/3/2025
9.5.1 127 11/2/2025
9.5.0 231 10/25/2025
9.2.1 715 9/16/2025
9.2.0 589 7/22/2025
9.1.3 1,570 6/9/2025
9.1.2 226 5/22/2025
9.1.1 1,054 4/10/2025
9.1.0 297 1/12/2025
9.0.3 110 1/11/2025
9.0.2 254 12/23/2024
9.0.1 254 11/21/2024
9.0.0 245 11/13/2024
8.1.3 248 9/30/2024
8.1.2 319 9/6/2024
8.0.2 518 3/6/2024
8.0.1 531 3/4/2024
8.0.0 382 1/28/2024
7.1.5 360 11/2/2023
7.1.4 167 11/2/2023
7.1.3 504 9/10/2023
7.1.2 206 9/10/2023
7.1.1 213 9/10/2023
7.1.0 207 9/10/2023
7.0.4 231 9/1/2023
7.0.2 410 8/27/2023
7.0.1 886 2/26/2023
7.0.0 346 2/26/2023