HeroKit.FluentValidation 3.6.0

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

HeroKit.FluentValidation

FluentValidation rules for HeroKit: Turkish identity and tax numbers, IBAN, card numbers, e-invoice numbers, MERSİS, barcodes, and phone numbers, postal codes, vehicle plates, national and tax ids of any registered country (Türkiye and the United States are built in).

dotnet add package HeroKit.FluentValidation
using FluentValidation;
using HeroKit.FluentValidation;
using HeroKit.Globalization;

public sealed class CustomerValidator : AbstractValidator<Customer>
{
    public CustomerValidator()
    {
        RuleFor(x => x.IdentityNumber).NotEmpty().Tckn();
        RuleFor(x => x.TaxId).TaxId(Countries.Turkey);
        RuleFor(x => x.Iban).Iban();
        RuleFor(x => x.Mobile).PhoneNumber(Countries.Turkey, mobileOnly: true);
        RuleFor(x => x.PostalCode).PostalCode(Countries.Turkey);
        RuleFor(x => x.Plate).VehiclePlate(Countries.Turkey);
        RuleFor(x => x.Card).CardNumber();
        RuleFor(x => x.InvoiceNumber).GibInvoiceNumber();
        RuleFor(x => x.Mersis).Mersis();
    }
}

Null and empty values pass; add NotEmpty() to require a value. Messages use {PropertyName} and can be replaced with WithMessage.

Documentation: https://herokit.emreakdemir.dev/articles/validation.html

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 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.7.0 85 10/19/2026
3.6.0 75 10/19/2026
3.5.0 108 10/16/2026
3.4.0 66 10/16/2026
3.3.0 63 10/16/2026
3.2.0 65 10/15/2026
3.1.0 65 10/15/2026
3.0.0 71 10/15/2026

No API changes; released with the other HeroKit packages. The repository moved to github.com/Lyconiq/HeroKit; releases now carry an SBOM and a build provenance attestation.