FluentAnnotationsValidator.Annotations 2.0.0-rc.1.0.0

This is a prerelease version of FluentAnnotationsValidator.Annotations.
dotnet add package FluentAnnotationsValidator.Annotations --version 2.0.0-rc.1.0.0
                    
NuGet\Install-Package FluentAnnotationsValidator.Annotations -Version 2.0.0-rc.1.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="FluentAnnotationsValidator.Annotations" Version="2.0.0-rc.1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluentAnnotationsValidator.Annotations" Version="2.0.0-rc.1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="FluentAnnotationsValidator.Annotations" />
                    
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 FluentAnnotationsValidator.Annotations --version 2.0.0-rc.1.0.0
                    
#r "nuget: FluentAnnotationsValidator.Annotations, 2.0.0-rc.1.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 FluentAnnotationsValidator.Annotations@2.0.0-rc.1.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=FluentAnnotationsValidator.Annotations&version=2.0.0-rc.1.0.0&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FluentAnnotationsValidator.Annotations&version=2.0.0-rc.1.0.0&prerelease
                    
Install as a Cake Tool

FluentAnnotationsValidator.Annotations

This package provides a curated set of custom validation attributes designed for fluent rule composition in .NET applications. It is part of the modular FluentAnnotationsValidator ecosystem.

Features

  • MinimumAttribute, MaximumAttribute – Range validation for numeric and enum types
  • CountPropertyAttribute – Marks custom properties as count sources for collection validation
  • Enum-aware and culture-aware comparison logic
  • Inclusive and exclusive comparison modes
  • XML-documented for IntelliSense and contributor clarity

Installation

dotnet add package FluentAnnotationsValidator.Annotations

Usage

public class Product
{
    [Minimum(1)]
    public int Quantity { get; set; }

    [Maximum(PriorityLevel.High)]
    public PriorityLevel Priority { get; set; }
}

License

MIT

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 was computed.  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 FluentAnnotationsValidator.Annotations:

Package Downloads
FluentAnnotationsValidator

A fluent, culture-aware validation library for .NET. Automatically transforms [ValidationAttribute] annotations into runtime rules, with support for conditional logic, error localization, and developer-friendly configuration.

FluentAnnotationsValidator.Runtime

The execution engine of the FluentAnnotationsValidator ecosystem powering dynamic validation pipelines by discovering attributes, composing rules, and executing validations at runtime.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0-rc.1.0.0 90 10/4/2025